Allow using notify.yml for any sort of mesages that need relayed.

This commit is contained in:
me
2026-10-02 10:22:14 -07:00
parent 2ea65fda25
commit d01227fcde
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -40,7 +40,7 @@
- include_tasks: tasks/general/acct_mgmt/notify.yml - include_tasks: tasks/general/acct_mgmt/notify.yml
vars: vars:
notify_message: "Started" notify_message: "Provisioning Started"
when: workstation when: workstation
@@ -295,6 +295,6 @@
- include_tasks: tasks/general/acct_mgmt/notify.yml - include_tasks: tasks/general/acct_mgmt/notify.yml
vars: vars:
notify_message: "Finished" notify_message: "Provisioning Finished"
- include_tasks: tasks/general/tests/lock_remove.yml - include_tasks: tasks/general/tests/lock_remove.yml
+1 -1
View File
@@ -10,6 +10,6 @@
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' 'Provisioning {{ 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