diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-06 19:05:00 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-06 23:35:34 +0100 |
commit | d03cede672edcf559379ca0b12c80fd7b92cfb18 (patch) | |
tree | 8c5837ef90fe33ca0ebfcf33ab1524edd1e00673 /roles/tools/tasks | |
parent | b227070796713b671fe499b7a1d3f767b5bb9b58 (diff) | |
download | Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.tar.gz Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.tar.zst Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.zip |
Use check_mode for commands
Diffstat (limited to 'roles/tools/tasks')
-rw-r--r-- | roles/tools/tasks/main.yml | 6 |
1 files changed, 2 insertions, 4 deletions
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 |