forked from evolix/ansible-roles
Delete OpenBSD support
The EvoBSD repository must be used for OpenBSD
This commit is contained in:
parent
e65340cb56
commit
60f2f19402
|
@ -1,66 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: Dependencies are installed
|
|
||||||
openbsd_pkg:
|
|
||||||
name:
|
|
||||||
- postgresql-client
|
|
||||||
- curl
|
|
||||||
state: present
|
|
||||||
tags:
|
|
||||||
- evomaintenance
|
|
||||||
|
|
||||||
- name: /usr/share/scripts exists
|
|
||||||
file:
|
|
||||||
dest: /usr/share/scripts
|
|
||||||
mode: "0700"
|
|
||||||
owner: root
|
|
||||||
group: wheel
|
|
||||||
state: directory
|
|
||||||
tags:
|
|
||||||
- evomaintenance
|
|
||||||
|
|
||||||
- name: Evomaintenance script and template are installed
|
|
||||||
copy:
|
|
||||||
src: "{{ item.src }}"
|
|
||||||
dest: "{{ item.dest }}"
|
|
||||||
owner: root
|
|
||||||
group: wheel
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Configuration is installed
|
|
||||||
template:
|
|
||||||
src: evomaintenance.j2
|
|
||||||
dest: /etc/evomaintenance.cf
|
|
||||||
owner: root
|
|
||||||
group: wheel
|
|
||||||
mode: "0600"
|
|
||||||
force: "{{ evomaintenance_force_config | bool }}"
|
|
||||||
tags:
|
|
||||||
- evomaintenance
|
|
||||||
|
|
||||||
- name: Copy mailevomaintenance
|
|
||||||
template:
|
|
||||||
src: mailevomaintenance.sh.j2
|
|
||||||
dest: /usr/share/scripts/mailevomaintenance.sh
|
|
||||||
owner: root
|
|
||||||
group: wheel
|
|
||||||
mode: "0700"
|
|
||||||
tags:
|
|
||||||
- evomaintenance
|
|
||||||
|
|
||||||
- name: Add mailevomaintenance cron
|
|
||||||
cron:
|
|
||||||
name: "mailevomaintenance"
|
|
||||||
job: "/usr/share/scripts/mailevomaintenance.sh"
|
|
||||||
minute: "50"
|
|
||||||
hour: "22"
|
|
||||||
disabled: yes
|
|
||||||
tags:
|
|
||||||
- mailevomaintenance
|
|
|
@ -19,10 +19,6 @@
|
||||||
- evomaintenance_install_vendor | bool
|
- evomaintenance_install_vendor | bool
|
||||||
- ansible_distribution == "Debian"
|
- ansible_distribution == "Debian"
|
||||||
|
|
||||||
- include: install_vendor_openbsd.yml
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "OpenBSD"
|
|
||||||
|
|
||||||
- include: minifirewall.yml
|
- include: minifirewall.yml
|
||||||
when:
|
when:
|
||||||
- evomaintenance_hook_db | bool
|
- evomaintenance_hook_db | bool
|
||||||
|
|
Loading…
Reference in a new issue