2021-08-30 09:24:57 +02:00
|
|
|
---
|
|
|
|
|
2023-03-20 23:33:19 +01:00
|
|
|
- ansible.builtin.assert:
|
2021-08-30 09:24:57 +02:00
|
|
|
that:
|
|
|
|
- evomaintenance_api_endpoint is not none
|
|
|
|
- evomaintenance_api_key is not none
|
|
|
|
msg: evomaintenance api variables must be set
|
2022-11-26 19:09:05 +01:00
|
|
|
when: evomaintenance_hook_api | bool
|
2021-08-30 09:24:57 +02:00
|
|
|
|
|
|
|
- name: Configuration is installed
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.template:
|
2021-08-30 09:24:57 +02:00
|
|
|
src: evomaintenance.j2
|
|
|
|
dest: /etc/evomaintenance.cf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0600"
|
|
|
|
force: "{{ evomaintenance_force_config | bool }}"
|
|
|
|
tags:
|
|
|
|
- evomaintenance
|