Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zabbix_agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
zabbix_agent
Commits
2e9b00c2
Commit
2e9b00c2
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Initial code
parent
74411ee2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
tasks/install.yml
+15
-0
15 additions, 0 deletions
tasks/install.yml
tasks/main.yml
+16
-0
16 additions, 0 deletions
tasks/main.yml
with
32 additions
and
0 deletions
defaults/main.yml
0 → 100644
+
1
−
0
View file @
2e9b00c2
zabbix_agent_url
:
'
http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+xenial_all.deb'
This diff is collapsed.
Click to expand it.
tasks/install.yml
0 → 100644
+
15
−
0
View file @
2e9b00c2
---
# 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
This diff is collapsed.
Click to expand it.
tasks/main.yml
0 → 100644
+
16
−
0
View file @
2e9b00c2
---
# 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'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment