Files
env-ansible/tasks/general/acct_mgmt/notify.yml
T

16 lines
476 B
YAML

---
# Create and manage permissions for notify log.
- name: General | Notify | Update File
ansible.builtin.shell: "{{ item }}"
loop:
- touch "{{ notify_log_file }}"
- chmod 777 "{{ notify_log_file }}"
register: shell_check
changed_when: shell_check.rc == 0
- name: General | Notify | Add Message
ansible.builtin.shell : echo "'Ansible' '{{ notify_message }} @ `date`'" >> "{{ notify_log_file }}"
register: shell_check
changed_when: shell_check.rc == 0