Sync arch mirror every 6 hour

This commit is contained in:
Paul-Henri Froidmont 2018-06-09 22:28:18 +02:00
parent a5785e21ed
commit 1e93c4ae3d
2 changed files with 94 additions and 0 deletions

View file

@ -1,4 +1,18 @@
---
- name: Copy mirror sync script
copy:
src: syncArchRepo.sh
dest: /home/claude/syncArchRepo.sh
mode: 0700
owner: claude
- name: Create mirror sync cron job
cron:
name: arch mirror sync
state: present
minute: 0
hour: "*/6"
job: "/home/claude/syncArchRepo.sh"
user: claude
- name: Copy Arch Linux mirror config
copy: src=arch-mirror dest={{docker_compose_files_folder}}
- name: Start Arch mirror project