Actualizar 'zabbix/agent.yaml'
This commit is contained in:
parent
080b8f3625
commit
91611189f4
|
@ -1,34 +1,34 @@
|
||||||
# ansible-playbook -i inventory agent.yaml -u centos --key-file=node.pem -b
|
# ansible-playbook -i inventory agent.yaml -u centos --key-file=node.pem -b
|
||||||
---
|
---
|
||||||
- hosts: "{{ nodes}}"
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
tasks:
|
tasks:
|
||||||
- name: get zabbix package
|
- name: get zabbix package
|
||||||
get_url:
|
get_url:
|
||||||
url: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix/zabbix-agent_6.4.0-1%2Bdebian11_amd64.deb
|
url: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix/zabbix-agent_6.4.0-1%2Bdebian11_amd64.deb
|
||||||
dest: /tmp
|
dest: /tmp
|
||||||
|
|
||||||
- name: dpkg zabbix
|
- name: dpkg zabbix
|
||||||
ansible.builtin.dpkg_selections:
|
ansible.builtin.dpkg_selections:
|
||||||
name: zabbix-release_6.0-3+ubuntu22.04_all.deb
|
name: zabbix-release_6.0-3+ubuntu22.04_all.deb
|
||||||
selection: install
|
selection: install
|
||||||
|
|
||||||
- name: update package index
|
- name: update package index
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
# - name: Copy zabbix_agentd.conf file with owner and permissions
|
# - name: Copy zabbix_agentd.conf file with owner and permissions
|
||||||
# ansible.builtin.copy:
|
# ansible.builtin.copy:
|
||||||
# src: zabbix_agentd.conf
|
# src: zabbix_agentd.conf
|
||||||
# dest: /etc/zabbix/zabbix_agentd.conf
|
# dest: /etc/zabbix/zabbix_agentd.conf
|
||||||
|
|
||||||
- name: install zabbix-agent #Zabbixエージェントをインストールします。
|
- name: install zabbix-agent #Zabbixエージェントをインストールします。
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- zabbix-agent
|
- zabbix-agent
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue