Logfile creation
This commit is contained in:
parent
1049a49804
commit
a4d0edfa95
1 changed files with 2 additions and 2 deletions
|
|
@ -5,14 +5,14 @@
|
|||
force_handlers: true
|
||||
|
||||
vars:
|
||||
log_path: "/var/log/ansible/{{ ansible_date_time.iso8601_basic_short }}.log"
|
||||
log_path: "{{ ansible_user_dir }}/.local/state/post_install/{{ ansible_date_time.iso8601_basic_short }}.log"
|
||||
|
||||
pre_tasks:
|
||||
- name: "Create Logfile"
|
||||
block:
|
||||
- name: "Create Folder"
|
||||
ansible.builtin.file:
|
||||
path: "/var/log/ansible/"
|
||||
path: "{{ ansible_user_dir }}/.local/state/post_install"
|
||||
state: directory
|
||||
mode: '0644'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue