Linting
This commit is contained in:
parent
77b6b71ad5
commit
615ab45238
@ -8,11 +8,13 @@
|
|||||||
upgrade: dist
|
upgrade: dist
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
force_apt_get: true
|
force_apt_get: true
|
||||||
|
|
||||||
- name: "Clean unwanted olderstuff"
|
- name: "Clean unwanted olderstuff"
|
||||||
apt:
|
apt:
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
purge: yes
|
purge: yes
|
||||||
clean: yes
|
clean: yes
|
||||||
|
|
||||||
- name: "Fix sysctl file"
|
- name: "Fix sysctl file"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: ../config/sysctl.conf
|
src: ../config/sysctl.conf
|
||||||
@ -20,5 +22,6 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: "Reboot all machines"
|
- name: "Reboot all machines"
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
name: zabbix-agent2
|
name: zabbix-agent2
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- ansible.builtin.copy: content="{{ psk_key }}" dest=/etc/zabbix/key.psk
|
|
||||||
|
|
||||||
- name: Configure zabbix agent service
|
- name: Configure zabbix agent service
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: ../templates/zabbix_agentd2.j2
|
src: ../templates/zabbix_agentd2.j2
|
||||||
@ -35,13 +33,16 @@
|
|||||||
group: zabbix
|
group: zabbix
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
ansible.builtin.copy:
|
||||||
|
content: "{{ psk_key }}"
|
||||||
|
dest: /etc/zabbix/key.psk
|
||||||
|
|
||||||
- name: Create a config directory
|
- name: Create a config directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/zabbix/zabbix_agentd.conf.d/
|
path: /etc/zabbix/zabbix_agentd.conf.d/
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
|
|
||||||
- name: Restart zabbix agent
|
- name: Restart zabbix agent
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: zabbix-agent2
|
name: zabbix-agent2
|
||||||
|
Loading…
Reference in New Issue
Block a user