mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-06-24 19:09:25 +00:00
10 lines
219 B
YAML
10 lines
219 B
YAML
- 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
|
|
|