1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/arch_boxes_sync/tasks/main.yml

17 lines
599 B
YAML

- name: Install arch-boxes-sync.sh script dependencies
pacman: name=curl,jq,unzip state=present
- name: Install arch-boxes-sync.sh script
copy: src=arch-boxes-sync.sh dest=/usr/local/bin/ owner=root group=root mode=0755
- name: Install arch-boxes-sync.{service,timer}
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
loop:
- arch-boxes-sync.service
- arch-boxes-sync.timer
notify:
- Daemon reload
- name: Start and enable arch-boxes-sync.timer
systemd_service: name=arch-boxes-sync.timer enabled=yes daemon_reload=yes state=started