clean up ansible-pull logging and lock against concurrent runs

This commit is contained in:
2026-07-12 15:30:07 -05:00
parent 3067b21276
commit cccc72cd6f
3 changed files with 31 additions and 8 deletions
+15 -1
View File
@@ -114,4 +114,18 @@
backup: true
become: no
#### - Create crontab entry for production branch
- name: Make sure log directory exists
ansible.builtin.file:
path: /var/log/ansible-pull.sh
state: directory
owner: hpf-ans
group: root
mode: ug=rwx,o=
# - name: Create ansible-pull.sh crontab entry
# ansible.builtin.cron:
# name: "ansible-pull"
# minute: "*/27"
# job: $HOME/bin/ansible-pull.sh
# backup: true
# become: no