mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
These roles are very similar and can be merged into a single new role. Note: The archive mirror is changed from a 4-hour sync to minutely for conformity with the other two mirrors. In practice this doesn't matter as it was already taking over 4 hours to finish and was starting again right after its previous run.
19 lines
488 B
YAML
19 lines
488 B
YAML
- name: Install rsync
|
|
pacman: name=rsync state=present
|
|
|
|
- name: Set up synchronization
|
|
include_tasks: sync.yml
|
|
loop: "{{ mirrorsync_mirrors | dict2items }}"
|
|
loop_control:
|
|
label: "{{ item.key }}"
|
|
when: inventory_hostname in item.value.hosts
|
|
|
|
- name: Set up nginx
|
|
include_tasks: web.yml
|
|
loop: "{{ mirrorsync_mirrors | dict2items }}"
|
|
loop_control:
|
|
label: "{{ item.key }}"
|
|
when:
|
|
- item.value.mirror_domain is defined
|
|
- inventory_hostname in item.value.hosts
|