From 480acc22b76b6727bf96dbb5597b43723d6ae392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20W=C3=BCrsten?= Date: Thu, 4 May 2023 11:54:58 +0200 Subject: [PATCH] fix: log file not written because of wrong directory --- templates/usr/bin/potos-ansible-pull.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/usr/bin/potos-ansible-pull.j2 b/templates/usr/bin/potos-ansible-pull.j2 index 7eef3d1..b7b4bd5 100644 --- a/templates/usr/bin/potos-ansible-pull.j2 +++ b/templates/usr/bin/potos-ansible-pull.j2 @@ -125,6 +125,9 @@ else {{ potos_basics_ansible_workdir }} 2>&1 fi +# Adjust ansible config with client +/usr/bin/sed 's|/var/log/potos|{{ potos_basics_ansible_logdir }}|' {{ potos_basics_ansible_workdir }}/ansible.cfg + # Run Ansible with custom ansible.cfg, use flock to prevent concurrent runs ANSIBLE_CONFIG={{ potos_basics_ansible_workdir }}/ansible.cfg mkdir -p /var/lock