From 1049a49804b7f9c89191e3672276eb9c5a1b4bcb Mon Sep 17 00:00:00 2001 From: Raphael Werner Date: Mon, 28 Apr 2025 22:27:54 +0200 Subject: [PATCH] Logfile creation --- local.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/local.yml b/local.yml index af4aeab..27dc89a 100644 --- a/local.yml +++ b/local.yml @@ -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 }}"