Skip to content
Snippets Groups Projects
Commit 2e9b00c2 authored by jurgenhaas's avatar jurgenhaas
Browse files

Initial code

parent 74411ee2
Branches
No related tags found
No related merge requests found
zabbix_agent_url: 'http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+xenial_all.deb'
---
# file: roles/zabbix_agent/tasks/main.yml
- name: "Download Zabbix Agent"
get_url:
url: '{{ zabbix_agent_url }}'
dest: '/tmp/zabbix_agent.deb'
- name: "Install Zabbix Agent"
shell: 'dpkg -i /tmp/zabbix_agent.deb'
- name: "Upgrade Zabbix-Agent"
apt:
upgrade: yes
update_cache: yes
---
# file: roles/zabbix_agent/tasks/main.yml
- name: "Zabbix Agent Role"
set_fact: role_zabbix_agent_started=true
tags: always
- block:
- include: install.yml
- name: 'Remember that this role had been run'
set_fact: role_zabbix_agent_completed=true
tags: always
when: '"zabbix_agent" not in excluded_roles and role_zabbix_agent_completed is not defined'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment