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:
|
pre_tasks:
|
||||||
- name: "Create Logfile"
|
- name: "Create Logfile"
|
||||||
block:
|
block:
|
||||||
|
- name: "Create Folder"
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/var/log/ansible/"
|
||||||
|
state: directory
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
- name: "Create File"
|
- name: "Create File"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ log_path }}"
|
path: "{{ log_path }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue