New variable "monitored_packages_predepends"
Install packages which are necessary for this role (needed for Alpine Linux's 'shadow' package)
This commit is contained in:
parent
89535aa5a3
commit
0284543e7e
|
@ -8,6 +8,7 @@ monitored_homedir: /var/lib/nagios
|
||||||
monitored_shell: /bin/bash
|
monitored_shell: /bin/bash
|
||||||
|
|
||||||
monitored_packages_install: True
|
monitored_packages_install: True
|
||||||
|
monitored_packages_predepends: []
|
||||||
monitored_packages_additional: []
|
monitored_packages_additional: []
|
||||||
monitored_packages_additional_nrpe: []
|
monitored_packages_additional_nrpe: []
|
||||||
monitored_packages_additional_ssh: []
|
monitored_packages_additional_ssh: []
|
||||||
|
|
|
@ -12,7 +12,12 @@
|
||||||
- "{{ (ansible_distribution|lower).split(' ')[0] }}-{{ (ansible_distribution_major_version|lower).split(' ')[0] }}.yml"
|
- "{{ (ansible_distribution|lower).split(' ')[0] }}-{{ (ansible_distribution_major_version|lower).split(' ')[0] }}.yml"
|
||||||
- "{{ (ansible_distribution|lower).split(' ')[0] }}.yml"
|
- "{{ (ansible_distribution|lower).split(' ')[0] }}.yml"
|
||||||
- "{{ (ansible_os_family|lower).split(' ')[0] }}.yml"
|
- "{{ (ansible_os_family|lower).split(' ')[0] }}.yml"
|
||||||
- "defaults.yml"
|
|
||||||
|
- name: "Install dependencies"
|
||||||
|
package:
|
||||||
|
name: "{{ monitored_packages_predepends }}"
|
||||||
|
state: latest
|
||||||
|
when: monitored_packages_predepends
|
||||||
|
|
||||||
- name: "INCLUDE: Create monitoring user"
|
- name: "INCLUDE: Create monitoring user"
|
||||||
import_tasks: user.yml
|
import_tasks: user.yml
|
||||||
|
|
Loading…
Reference in a new issue