mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
build
This commit is contained in:
3
all.yml
3
all.yml
@@ -2,6 +2,9 @@
|
|||||||
name: Roles
|
name: Roles
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
roles:
|
roles:
|
||||||
|
- name: zabbix_proxy_service
|
||||||
|
role: zabbix_proxy_service
|
||||||
|
tags: zabbix_proxy_service
|
||||||
- name: init
|
- name: init
|
||||||
role: init
|
role: init
|
||||||
tags: init
|
tags: init
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
- name: Set proxy group name
|
- name: Set proxy group name
|
||||||
set_fact:
|
set_fact:
|
||||||
clustename: "alma10"
|
clustename: "alma10"
|
||||||
|
|
||||||
- name: Allow user to start/stop zabbix-proxy with sudo without password
|
- name: Allow user to start/stop zabbix-proxy with sudo without password
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: "/etc/sudoers.d/{{ zabbix_user }}-zabbix-proxy"
|
dest: "/etc/sudoers.d/{{ zabbix_user }}-zabbix-proxy"
|
||||||
@@ -124,7 +124,15 @@
|
|||||||
recurse: yes
|
recurse: yes
|
||||||
when: zabbix_db_type == "sqlite"
|
when: zabbix_db_type == "sqlite"
|
||||||
|
|
||||||
|
- name: Configure firewall for Zabbix Proxy
|
||||||
|
when: ansible_os_family == "RedHat"
|
||||||
|
block:
|
||||||
|
- name: Open port 10051/tcp
|
||||||
|
ansible.posix.firewalld:
|
||||||
|
port: 10051/tcp
|
||||||
|
permanent: true
|
||||||
|
state: enabled
|
||||||
|
immediate: true
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
# MySQL setup
|
# MySQL setup
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user