mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 13:40:17 +00:00
adding cron job for ansible-pull
This commit is contained in:
10
roles/common/tasks/cron.yml
Normal file
10
roles/common/tasks/cron.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
- name: Add ansible cron job
|
||||||
|
copy:
|
||||||
|
content: |
|
||||||
|
#!/bin/bash
|
||||||
|
cd /var/thunix/ansible
|
||||||
|
git pull
|
||||||
|
ansible-playbook -i ./hosts ./site.yml -u root
|
||||||
|
dest: /etc/cron.hourly/ansible-pull
|
||||||
|
owner: root
|
||||||
|
|
||||||
Reference in New Issue
Block a user