2022-11-11 14:10:43 +01:00
|
|
|
- name: Install ola
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name: ola
|
2022-11-17 23:30:52 +01:00
|
|
|
- name: Ensure all given configuraton files are deployed
|
|
|
|
ansible.builtin.copy:
|
|
|
|
content: "{{ item.content }}"
|
|
|
|
dest: /etc/ola/{{ item.name }}.conf
|
|
|
|
mode: 0644
|
2022-11-11 14:10:43 +01:00
|
|
|
owner: olad
|
|
|
|
group: olad
|
2022-11-17 23:30:52 +01:00
|
|
|
loop: "{{ ola__configs }}"
|
|
|
|
notify: Restart olad
|
2022-11-11 14:10:43 +01:00
|
|
|
- name: Enable and start ola service
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: olad.service
|
|
|
|
state: started
|
|
|
|
enabled: true
|