ansible-infra/playbooks/roles/ola/tasks/main.yml
yuri e74a50e873
Automate light server
Co-authored-by: J <j@jsts.xyz>
2022-11-17 23:30:52 +01:00

17 lines
435 B
YAML

- name: Install ola
ansible.builtin.apt:
name: ola
- name: Ensure all given configuraton files are deployed
ansible.builtin.copy:
content: "{{ item.content }}"
dest: /etc/ola/{{ item.name }}.conf
mode: 0644
owner: olad
group: olad
loop: "{{ ola__configs }}"
notify: Restart olad
- name: Enable and start ola service
ansible.builtin.systemd:
name: olad.service
state: started
enabled: true