mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-08-03 19:22:57 +02:00
The role is now called "arch_images_sync" and iterates over arguments to handle other images types in a dedicated path in the ftp directory. It now also handles the WSL images.
17 lines
607 B
YAML
17 lines
607 B
YAML
- name: Install arch-images-sync.sh script dependencies
|
|
pacman: name=curl,jq,unzip state=present
|
|
|
|
- name: Install arch-images-sync.sh script
|
|
copy: src=arch-images-sync.sh dest=/usr/local/bin/ owner=root group=root mode=0755
|
|
|
|
- name: Install arch-images-sync.{service,timer}
|
|
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
|
|
loop:
|
|
- arch-images-sync.service
|
|
- arch-images-sync.timer
|
|
notify:
|
|
- Daemon reload
|
|
|
|
- name: Start and enable arch-images-sync.timer
|
|
systemd_service: name=arch-images-sync.timer enabled=yes daemon_reload=yes state=started
|