Logfile creation
This commit is contained in:
parent
4b5e6baf0b
commit
1049a49804
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,12 @@
|
|||
pre_tasks:
|
||||
- name: "Create Logfile"
|
||||
block:
|
||||
- name: "Create Folder"
|
||||
ansible.builtin.file:
|
||||
path: "/var/log/ansible/"
|
||||
state: directory
|
||||
mode: '0644'
|
||||
|
||||
- name: "Create File"
|
||||
ansible.builtin.file:
|
||||
path: "{{ log_path }}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue