Don't warn for some known commands

This commit is contained in:
Jérémy Lecour 2017-05-19 22:30:51 +02:00
parent 9fae99f8dc
commit e2452cdf6c
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,7 @@
args:
chdir: /etc
creates: /etc/.git/
warn: no
register: git_init
- name: Git user.email is configured
@ -44,6 +45,7 @@
command: "git log"
args:
chdir: /etc
warn: no
changed_when: False
failed_when: False
register: git_log
@ -53,5 +55,6 @@
shell: "git add -A . && git commit -m \"Initial commit via Ansible\""
args:
chdir: /etc
warn: no
register: git_commit
when: git_log.rc != 0 or (git_init is defined and git_init.changed)

View File

@ -23,9 +23,13 @@
- name: remount /home
command: mount -o remount /home
args:
warn: no
- name: remount /var
command: mount -o remount /var
args:
warn: no
- name: restart nginx