notify, make sure commands execute successfully, use a variable rather than hard-coded status.

This commit is contained in:
me
2026-10-02 10:21:32 -07:00
parent d36eac4ceb
commit 2ea65fda25
+5 -1
View File
@@ -6,6 +6,10 @@
loop:
- touch "{{ notify_log_file }}"
- chmod 777 "{{ notify_log_file }}"
register: shell_check
changed_when: shell_check.rc != 0
- name: General | Notify | Add Message
shell : echo "'Ansible' 'Provisioning finished @ `date`'" >> "{{ notify_log_file }}"
shell : echo "'Ansible' 'Provisioning {{ notify_message }} @ `date`'" >> "{{ notify_log_file }}"
register: shell_check
changed_when: shell_check.rc != 0