renamed install.yml to main.yml and add evocheck cron at the beginning of the daily.local file
This commit is contained in:
parent
04bdff87f4
commit
1939ca3142
|
@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- etc-git: manage commits with an optimized shell script instead of many slow Ansible tasks
|
||||
- etc-git: add versioning for /usr/share/scripts
|
||||
- nagios-nrpe: add a wraper to check_dhcpd to define the number of dhcpd processes that must be running depending on the CARP state
|
||||
- evocheck: renamed install.yml to main.yml and add evocheck cron at the beginning of the daily.local file
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
---
|
||||
- name: Scripts dir is present
|
||||
file:
|
||||
path: "{{ evocheck_bin_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: wheel
|
||||
mode: "0700"
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Copy evocheck.sh
|
||||
copy:
|
||||
src: evocheck.sh
|
||||
dest: "{{ evocheck_bin_dir }}/evocheck.sh"
|
||||
mode: "0700"
|
||||
owner: root
|
||||
force: true
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Copy evocheck.cf
|
||||
copy:
|
||||
src: evocheck.cf
|
||||
dest: /etc/evocheck.cf
|
||||
force: false
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Add evocheck cron
|
||||
lineinfile:
|
||||
path: /etc/daily.local
|
||||
line: 'sh /usr/share/scripts/evocheck.sh --verbose --cron'
|
||||
owner: root
|
||||
mode: "0644"
|
||||
create: true
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Add evocheck cron next_part
|
||||
lineinfile:
|
||||
path: /etc/daily.local
|
||||
line: 'next_part "Evocheck output:"'
|
||||
insertbefore: 'sh /usr/share/scripts/evocheck.sh --verbose --cron'
|
||||
owner: root
|
||||
mode: "0644"
|
||||
create: true
|
||||
tags:
|
||||
- evocheck
|
|
@ -1,2 +1,50 @@
|
|||
---
|
||||
- include: install.yml
|
||||
- name: Scripts dir is present
|
||||
file:
|
||||
path: "{{ evocheck_bin_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: wheel
|
||||
mode: "0700"
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Copy evocheck.sh
|
||||
copy:
|
||||
src: evocheck.sh
|
||||
dest: "{{ evocheck_bin_dir }}/evocheck.sh"
|
||||
mode: "0700"
|
||||
owner: root
|
||||
force: true
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Copy evocheck.cf
|
||||
copy:
|
||||
src: evocheck.cf
|
||||
dest: /etc/evocheck.cf
|
||||
force: false
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Add evocheck cron
|
||||
lineinfile:
|
||||
path: /etc/daily.local
|
||||
insertbefore: BOF
|
||||
line: 'sh /usr/share/scripts/evocheck.sh --verbose --cron'
|
||||
owner: root
|
||||
mode: "0644"
|
||||
create: true
|
||||
tags:
|
||||
- evocheck
|
||||
|
||||
- name: Add evocheck cron - next_part
|
||||
lineinfile:
|
||||
path: /etc/daily.local
|
||||
line: 'next_part "Evocheck output:"'
|
||||
insertbefore: 'sh /usr/share/scripts/evocheck.sh --verbose --cron'
|
||||
owner: root
|
||||
mode: "0644"
|
||||
create: true
|
||||
tags:
|
||||
- evocheck
|
||||
|
|
Loading…
Reference in a new issue