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

View file

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