bugfix vim (#130)
bugfix vim Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#130 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
0d17626c8f
commit
5a95cbfd71
1 changed files with 29 additions and 7 deletions
|
@ -3,14 +3,36 @@
|
|||
become: yes
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- timeshift
|
||||
- timeshift-gtk
|
||||
- vim
|
||||
- ripgrep
|
||||
state: present
|
||||
|
||||
- name: templating timeshift config
|
||||
- name: check if vundle is installed - folder
|
||||
become: yes
|
||||
ansible.builtin.template:
|
||||
src: "timeshift.json"
|
||||
dest: "/etc/timeshift/timeshift.json"
|
||||
mode: 0664
|
||||
stat:
|
||||
path: "{{ vim_vundle_path }}"
|
||||
register: folder_exists
|
||||
|
||||
- name: Ensure repository is cloned locally.
|
||||
git:
|
||||
repo: "{{ vim_vundle_repo_url }}"
|
||||
dest: "{{ vim_vundle_path }}"
|
||||
depth: 1
|
||||
register: repo_cloned
|
||||
|
||||
- name: set owner recursive for repo
|
||||
file:
|
||||
path: "{{ vim_homedir }}"
|
||||
owner: mg
|
||||
group: mg
|
||||
recurse: yes
|
||||
when: repo_cloned.changed == true
|
||||
|
||||
- name: Vundle - PluginInstall
|
||||
ansible.builtin.shell: yes | vim -c PluginInstall -c qall
|
||||
args:
|
||||
chdir: /home/mg
|
||||
when:
|
||||
- (folder_exists.stat.exists == False) and ("ansible_facts['distribution'] == 'Ubuntu'")
|
||||
become: yes
|
||||
become_user: mg
|
||||
|
|
Loading…
Reference in a new issue