Files
Robin Candau 0398db129f Generalize the "arch_boxes_sync" ansible role to handle other images types and add the WSL images to it
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.
2025-04-17 22:33:19 +02:00

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