|
|
@ -6,6 +6,12 @@
|
|
|
|
hosts: all
|
|
|
|
hosts: all
|
|
|
|
|
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
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
|
|
|
|
- name: Write a start message to the playbook log
|
|
|
|
ansible.builtin.shell: >
|
|
|
|
ansible.builtin.shell: >
|
|
|
|
printf "\nStarted playbook '{{ ansible_play_name }}' execution at {{ now() }}\n"
|
|
|
|
printf "\nStarted playbook '{{ ansible_play_name }}' execution at {{ now() }}\n"
|
|
|
|