@ -6,6 +6,12 @@
hosts: all
pre_tasks:
- name: Ensure ansible log directory exists
ansible.builtin.file:
path: log
state: directory
owner: "{{ ansible_env.USER }}"
group: "{{ ansible_env.USER }}"
- name: Write a start message to the playbook log
ansible.builtin.shell: >
printf "\nStarted playbook '{{ ansible_play_name }}' execution at {{ now() }}\n"