notify, reverse the changed_when's.
This commit is contained in:
1 parent
a266189b38
commit
463a5fc4af
1 file changed
+2
-2
@@ -7,9 +7,9 @@
|
|||||||
- touch "{{ notify_log_file }}"
|
- touch "{{ notify_log_file }}"
|
||||||
- chmod 777 "{{ notify_log_file }}"
|
- chmod 777 "{{ notify_log_file }}"
|
||||||
register: shell_check
|
register: shell_check
|
||||||
changed_when: shell_check.rc != 0
|
changed_when: shell_check.rc == 0
|
||||||
|
|
||||||
- name: General | Notify | Add Message
|
- name: General | Notify | Add Message
|
||||||
shell : echo "'Ansible' '{{ notify_message }} @ `date`'" >> "{{ notify_log_file }}"
|
shell : echo "'Ansible' '{{ notify_message }} @ `date`'" >> "{{ notify_log_file }}"
|
||||||
register: shell_check
|
register: shell_check
|
||||||
changed_when: shell_check.rc != 0
|
changed_when: shell_check.rc == 0
|
||||||
Reference in new issue
Block a user