mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2024-09-04 10:00
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
---
|
||||
|
||||
- import_tasks: ../includes/get_rand_pass.yml
|
||||
vars:
|
||||
- pass_file: /etc/zabbix/ansible_db_pass
|
||||
when: zabbix_server_db_pass is not defined
|
||||
- include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
||||
- "{{ role_path }}/vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
|
||||
- "{{ role_path }}/vars/{{ ansible_distribution }}.yml"
|
||||
- "{{ role_path }}/vars/{{ ansible_os_family }}.yml"
|
||||
tags: zabbix
|
||||
- set_fact: zabbix_server_db_pass={{ rand_pass }}
|
||||
|
||||
# Create a random app secret if needed
|
||||
- block:
|
||||
- import_tasks: ../includes/get_rand_pass.yml
|
||||
vars:
|
||||
- pass_file: "/etc/zabbix/ansible_db_pass"
|
||||
- set_fact: zabbix_server_db_pass={{ rand_pass }}
|
||||
when: zabbix_server_db_pass is not defined
|
||||
tags: zabbix
|
||||
|
||||
|
@@ -1,22 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Install packages
|
||||
yum:
|
||||
name:
|
||||
- zabbix-server-mysql
|
||||
- zabbix-web
|
||||
- zabbix-java-gateway
|
||||
- zabbix-get
|
||||
- mariadb
|
||||
- fping
|
||||
- patrix
|
||||
- perl-JSON
|
||||
- perl-IO-Socket-SSL
|
||||
- perl-libwww-perl
|
||||
- perl-URI
|
||||
- perl-DateTime-Format-ISO8601
|
||||
- perl-Getopt-Long
|
||||
- perl-Pod-Usage
|
||||
- name: Installed packages
|
||||
package: name={{ zabbix_server_packages }}
|
||||
tags: zabbix
|
||||
|
||||
- name: Install backup scripts
|
||||
|
@@ -18,7 +18,7 @@
|
||||
when: zabbix_server_selinux_policy.changed
|
||||
tags: zabbix
|
||||
|
||||
- name: Load policy for Zabbix Proxy
|
||||
- name: Load policy for Zabbix Server
|
||||
command: semodule -i /etc/selinux/targeted/local/zabbix_server.pp
|
||||
when: zabbix_server_selinux_policy.changed
|
||||
tags: zabbix
|
||||
|
Reference in New Issue
Block a user