1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/syncarchive/tasks/main.yml
Frederik Schwan a4a4f3e76c
fix E303 'Using command rather than module'
also use systemd instead of service module
2020-06-17 02:43:12 +02:00

22 lines
550 B
YAML

---
- name: install rsync
pacman: name=rsync state=present
- name: install syncarchive script
copy: src=syncarchive dest=/usr/local/bin/syncarchive owner=root group=root mode=0755
- name: install syncarchive units
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
with_items:
- syncarchive.timer
- syncarchive.service
- name: start and enable syncarchive units
systemd:
name: "{{ item }}"
enabled: yes
state: started
daemon_reload: yes
with_items:
- syncarchive.timer