laptop rollen (#107)
vim when vundle bugfix dotfiles readme syntax polybar defaults vim defaults Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#107 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
036c3cef47
commit
b3e8d0967b
8 changed files with 34 additions and 13 deletions
|
@ -10,7 +10,7 @@
|
||||||
repo: "{{ dotfiles_repo_url }}"
|
repo: "{{ dotfiles_repo_url }}"
|
||||||
dest: "{{ dotfiles_repo_path }}"
|
dest: "{{ dotfiles_repo_path }}"
|
||||||
depth: 1
|
depth: 1
|
||||||
become_user: "{{ dotfiles_owner }}"
|
register: git_clone
|
||||||
|
|
||||||
- name: set owner recursive for repo
|
- name: set owner recursive for repo
|
||||||
file:
|
file:
|
||||||
|
@ -18,6 +18,7 @@
|
||||||
owner: "{{ dotfiles_owner }}"
|
owner: "{{ dotfiles_owner }}"
|
||||||
group: "{{ dotfiles_owner }}"
|
group: "{{ dotfiles_owner }}"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
when: (git_clone.changed == true)
|
||||||
|
|
||||||
- name: Ensure needed dirs exist.
|
- name: Ensure needed dirs exist.
|
||||||
file:
|
file:
|
||||||
|
@ -34,8 +35,3 @@
|
||||||
owner: "{{ dotfiles_owner }}"
|
owner: "{{ dotfiles_owner }}"
|
||||||
group: "{{ dotfiles_owner }}"
|
group: "{{ dotfiles_owner }}"
|
||||||
with_items: "{{ dotfiles_files }}"
|
with_items: "{{ dotfiles_files }}"
|
||||||
|
|
||||||
|
|
||||||
# recurse: yes
|
|
||||||
# owner: foo
|
|
||||||
# group: foo
|
|
||||||
|
|
4
roles/mgrote.i3/readme.md
Normal file
4
roles/mgrote.i3/readme.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
## mgrote.vim
|
||||||
|
|
||||||
|
### Beschreibung
|
||||||
|
installiert i3 + tools.
|
3
roles/mgrote.polybar/defaults/main.yml
Normal file
3
roles/mgrote.polybar/defaults/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
polybar_siji_repo: https://github.com/stark/siji
|
||||||
|
polybar_siji_local: /home/mg/siji
|
7
roles/mgrote.polybar/readme.md
Normal file
7
roles/mgrote.polybar/readme.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
## mgrote.polybar
|
||||||
|
|
||||||
|
### Beschreibung
|
||||||
|
installiert polybar, siji-font und setzt die rechte für das backlight.
|
||||||
|
|
||||||
|
### Variablen + Defaults
|
||||||
|
- see [defaults](./defaults/main.yml)
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
- name: checkout siji font
|
- name: checkout siji font
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: https://github.com/stark/siji
|
repo: "{{ polybar_siji_repo }}"
|
||||||
dest: /home/mg/siji
|
dest: "{{ polybar_siji_local }}"
|
||||||
register: gitcheckout
|
register: gitcheckout
|
||||||
|
|
||||||
- name: install siji-font
|
- name: install siji-font
|
||||||
|
|
4
roles/mgrote.vim/defaults/main.yml
Normal file
4
roles/mgrote.vim/defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
vim_vundle_path: /home/mg/.vim/bundle/Vundle.vim
|
||||||
|
vim_vundle_repo_url: https://github.com/VundleVim/Vundle.vim.git
|
||||||
|
vim_homedir: /home/mg/.vim
|
7
roles/mgrote.vim/readme.md
Normal file
7
roles/mgrote.vim/readme.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
## mgrote.vim
|
||||||
|
|
||||||
|
### Beschreibung
|
||||||
|
installiert vim und installiert plugins per vundle
|
||||||
|
|
||||||
|
### Variablen + Defaults
|
||||||
|
- see [defaults](./defaults/main.yml)
|
|
@ -10,18 +10,18 @@
|
||||||
- name: check if vundle is installed - folder
|
- name: check if vundle is installed - folder
|
||||||
become: yes
|
become: yes
|
||||||
stat:
|
stat:
|
||||||
path: "/home/mg/.vim/bundle/Vundle.vim"
|
path: "{{ vim_vundle_path }}"
|
||||||
register: folder_exists
|
register: folder_exists
|
||||||
|
|
||||||
- name: Ensure repository is cloned locally.
|
- name: Ensure repository is cloned locally.
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/VundleVim/Vundle.vim.git
|
repo: "{{ vim_vundle_repo_url }}"
|
||||||
dest: /home/mg/.vim/bundle/Vundle.vim
|
dest: "{{ vim_vundle_path }}"
|
||||||
depth: 1
|
depth: 1
|
||||||
|
|
||||||
- name: set owner recursive for repo
|
- name: set owner recursive for repo
|
||||||
file:
|
file:
|
||||||
path: /home/mg/.vim
|
path: "{{ vim_homedir }}"
|
||||||
owner: mg
|
owner: mg
|
||||||
group: mg
|
group: mg
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
@ -31,4 +31,4 @@
|
||||||
args:
|
args:
|
||||||
chdir: /home/mg
|
chdir: /home/mg
|
||||||
become_user: mg
|
become_user: mg
|
||||||
# when: (folder_exists.stat.exists == False)
|
when: (folder_exists.stat.exists == False)
|
||||||
|
|
Loading…
Reference in a new issue