clean up ansible-pull logging and lock against concurrent runs
This commit is contained in:
+15
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user