evomaintenance: Make it work on non-debian systems

This commit is contained in:
Ludovic Poujol 2022-03-10 11:58:35 +01:00
parent 5a2dc5cbd1
commit 0e768809b7
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,31 @@
---
- include_role:
name: evolix/remount-usr
tags:
- evomaintenance
- name: /usr/share/scripts exists
file:
dest: /usr/share/scripts
mode: "0700"
owner: root
group: root
state: directory
tags:
- evomaintenance
- name: Evomaintenance script and template are installed
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: "{{ item.mode }}"
force: yes
backup: yes
loop:
- { src: 'evomaintenance.sh', dest: '/usr/share/scripts/', mode: '0700' }
- { src: 'evomaintenance.tpl', dest: '/usr/share/scripts/', mode: '0600' }
tags:
- evomaintenance

View file

@ -10,6 +10,12 @@
- evomaintenance_install_vendor | bool
- ansible_distribution == "Debian"
- include: install_vendor_other.yml
when:
- evomaintenance_install_vendor | bool
- ansible_distribution != "Debian"
- include: config.yml
- include: minifirewall.yml