forked from evolix/ansible-roles
evomaintenance: Make it work on non-debian systems
This commit is contained in:
parent
5a2dc5cbd1
commit
0e768809b7
31
evomaintenance/tasks/install_vendor_other.yml
Normal file
31
evomaintenance/tasks/install_vendor_other.yml
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue