feat: move stuff around for testing
This commit is contained in:
parent
c14dd49576
commit
9d117e9fb8
11 changed files with 6 additions and 1 deletions
33
tasks/config.yaml
Normal file
33
tasks/config.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
|
||||
# setup psk
|
||||
- name: "setup psk"
|
||||
ansible.builtin.template:
|
||||
src: "templates/zabbix/zabbix_agent.psk.j2"
|
||||
dest: "/etc/zabbix/zabbix_agent.psk"
|
||||
owner: "zabbix"
|
||||
group: "zabbix"
|
||||
mode: "0640"
|
||||
notify: "restart zabbix-agent"
|
||||
|
||||
# config agent
|
||||
- name: "config agent"
|
||||
ansible.builtin.template:
|
||||
src: "templates/zabbix/zabbix_agent.conf.j2"
|
||||
dest: "/etc/zabbix/zabbix_agent2.conf"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0664"
|
||||
notify: "restart zabbix-agent"
|
||||
|
||||
# configure plugins
|
||||
- name: "configure plugins"
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/zabbix/zabbix_agent2.d/plugins.d/"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
with_fileglob:
|
||||
- "files/zabbix/plugins.d/*"
|
||||
notify: "restart zabbix-agent"
|
||||
Loading…
Add table
Add a link
Reference in a new issue