2018-09-20 17:08:30 +02:00
|
|
|
---
|
|
|
|
|
2018-10-12 10:12:54 +02:00
|
|
|
- name: Dependencies are installed
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.apt:
|
2020-01-09 15:05:44 +01:00
|
|
|
name:
|
2019-12-31 15:25:10 +01:00
|
|
|
- sudo
|
|
|
|
- curl
|
2018-10-08 09:37:12 +02:00
|
|
|
state: present
|
2018-10-12 10:12:54 +02:00
|
|
|
tags:
|
|
|
|
- evomaintenance
|
2018-10-08 09:37:12 +02:00
|
|
|
|
2020-02-25 10:43:23 +01:00
|
|
|
- name: PG dependencies are installed
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.apt:
|
2020-02-25 10:43:23 +01:00
|
|
|
name:
|
|
|
|
- postgresql-client
|
|
|
|
state: present
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evomaintenance_hook_db | bool
|
2020-02-25 10:43:23 +01:00
|
|
|
tags:
|
|
|
|
- evomaintenance
|
|
|
|
|
2023-03-20 23:33:19 +01:00
|
|
|
- ansible.builtin.include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/remount-usr
|
2018-09-20 17:08:30 +02:00
|
|
|
tags:
|
|
|
|
- evomaintenance
|
|
|
|
|
|
|
|
- name: /usr/share/scripts exists
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.file:
|
2018-09-20 17:08:30 +02:00
|
|
|
dest: /usr/share/scripts
|
|
|
|
mode: "0700"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
state: directory
|
|
|
|
tags:
|
|
|
|
- evomaintenance
|
|
|
|
|
2019-05-11 21:34:10 +02:00
|
|
|
- name: Evomaintenance script and template are installed
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.copy:
|
2024-05-15 13:50:32 +02:00
|
|
|
src: "upstream/evomaintenance.sh"
|
|
|
|
dest: "/usr/share/scripts/"
|
2018-09-20 17:08:30 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2024-05-15 13:50:32 +02:00
|
|
|
mode: "0700"
|
2023-06-28 13:22:59 +02:00
|
|
|
force: true
|
2018-09-20 17:08:30 +02:00
|
|
|
backup: yes
|
2019-12-31 15:25:10 +01:00
|
|
|
tags:
|
2024-05-15 13:50:32 +02:00
|
|
|
- evomaintenance
|