Allow using notify.yml for any sort of mesages that need relayed.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
|
||||
- include_tasks: tasks/general/acct_mgmt/notify.yml
|
||||
vars:
|
||||
notify_message: "Started"
|
||||
notify_message: "Provisioning Started"
|
||||
|
||||
when: workstation
|
||||
|
||||
@@ -295,6 +295,6 @@
|
||||
|
||||
- include_tasks: tasks/general/acct_mgmt/notify.yml
|
||||
vars:
|
||||
notify_message: "Finished"
|
||||
notify_message: "Provisioning Finished"
|
||||
|
||||
- include_tasks: tasks/general/tests/lock_remove.yml
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
changed_when: shell_check.rc != 0
|
||||
|
||||
- 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
|
||||
changed_when: shell_check.rc != 0
|
||||
|
||||
Reference in New Issue
Block a user