24 lines
456 B
YAML
24 lines
456 B
YAML
|
---
|
||
|
|
||
|
- name: install automirror systemd units
|
||
|
template:
|
||
|
src: "automirror/pvc-automirror.{{ item }}.j2"
|
||
|
dest: "/etc/systemd/system/pvc-automirror.{{ item }}"
|
||
|
loop:
|
||
|
- timer
|
||
|
- service
|
||
|
register: systemd
|
||
|
|
||
|
- name: reload systemd to apply changes
|
||
|
command: systemctl daemon-reload
|
||
|
when: systemd.changed
|
||
|
|
||
|
- name: enable timer units
|
||
|
systemd:
|
||
|
name: "{{ item }}"
|
||
|
state: started
|
||
|
enabled: true
|
||
|
loop:
|
||
|
- pvc-automirror.timer
|
||
|
|