summaryrefslogtreecommitdiff
path: root/roles/tools
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-06 19:05:00 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-06 23:35:34 +0100
commitd03cede672edcf559379ca0b12c80fd7b92cfb18 (patch)
tree8c5837ef90fe33ca0ebfcf33ab1524edd1e00673 /roles/tools
parentb227070796713b671fe499b7a1d3f767b5bb9b58 (diff)
downloadAnsible-d03cede672edcf559379ca0b12c80fd7b92cfb18.tar.gz
Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.tar.zst
Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.zip
Use check_mode for commands
Diffstat (limited to 'roles/tools')
-rw-r--r--roles/tools/handlers/main.yml2
-rw-r--r--roles/tools/tasks/main.yml6
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/tools/handlers/main.yml b/roles/tools/handlers/main.yml
index a282512..a050b9b 100644
--- a/roles/tools/handlers/main.yml
+++ b/roles/tools/handlers/main.yml
@@ -3,3 +3,5 @@
3 systemd: 3 systemd:
4 daemon_reload: true 4 daemon_reload: true
5 scope: user 5 scope: user
6- name: run PlugInstall
7 shell: vim -c PlugInstall -c qa
diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml
index fe5b023..70bba9d 100644
--- a/roles/tools/tasks/main.yml
+++ b/roles/tools/tasks/main.yml
@@ -18,13 +18,11 @@
18 path: $XDG_STATE_HOME/psql 18 path: $XDG_STATE_HOME/psql
19 state: directory 19 state: directory
20- name: vim config file 20- name: vim config file
21 register: vim_result
22 copy: 21 copy:
23 src: vimrc 22 src: vimrc
24 dest: $XDG_CONFIG_HOME/vim/vimrc 23 dest: $XDG_CONFIG_HOME/vim/vimrc
25- name: run PlugInstall 24 notify:
26 shell: vim -c PlugInstall -c qa 25 - run PlugInstall
27 when: vim_result.changed
28- name: tmux config file 26- name: tmux config file
29 template: 27 template:
30 src: tmux.conf.j2 28 src: tmux.conf.j2