Skip to content

Commit

Permalink
fix: log file not written because of wrong directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fadnincx committed May 4, 2023
1 parent 9a7956e commit 480acc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/usr/bin/potos-ansible-pull.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 480acc2

Please sign in to comment.