ansible/roles/pve_activate/tasks/main.yml

29 lines
543 B
YAML
Raw Permalink Normal View History

2023-04-05 00:19:04 +02:00
---
- name: Install pve-activate
copy:
src: pve-activate
dest: /usr/local/sbin/pve-activate
owner: root
group: root
mode: u=rwx,g=rx,o=rx
- name: Configure pve-activate timer
template:
src: "{{ item }}.j2"
dest: "/etc/systemd/system/{{ item }}"
mode: u=rw,g=r,o=r
owner: root
group: root
loop:
- pve-activate.service
- pve-activate.timer
notify:
- Run daemon-reload
- name: Enable pve-activate timer
systemd:
name: pve-activate.timer
enabled: true
state: started
...