forked from evolix/ansible-roles
Don't warn for some known commands
This commit is contained in:
parent
9fae99f8dc
commit
e2452cdf6c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue