ansible-infra/roles/ola/tasks/main.yaml

23 lines
483 B
YAML
Raw Normal View History

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