Otherwise "start message" pretask fails on fresh pull

master
Taha Ahmed 6 months ago
parent c8f97a8683
commit 531488dabf

@ -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"

Loading…
Cancel
Save