Commit d2bc9923 authored by Matthew Smith's avatar Matthew Smith
Browse files

add prequsite packages

parent 886f4808
......@@ -10,4 +10,8 @@ icinga2_plugins_repos:
key_destination: /root/.ssh
git_repo: ssh://git@gitlab.example.net/my/icinga-plugins.git
git_destination: /usr/lib/nagios/plugins/my
prequsite_packages:
- foo
- bar
```
......@@ -6,5 +6,8 @@ icinga2_plugins_repos: []
# key_destination: /root/.ssh
# git_repo: ssh://git@gitlab.example.net/MY/icinga-plugins.git
# git_destination: /usr/lib/nagios/plugins/my
# prequsite_packages:
# - foo
# - bar
......@@ -12,9 +12,21 @@
name: "{{ item }}"
state: present
update_cache: yes
with_items:
loop:
- "{{ icinga2_plugin_packages }}"
- "{{ check_pve_packages }}"
- "{{ icinga2_plugin_check_pve_dependencies }}"
tags:
- repo
- name: install packages for my plugins
package:
name: "{{ item.1 }}"
state: present
update_cache: yes
with_subelements:
- "{{ icinga2_plugins_repos }}"
- prequsite_packages
- skip_missing: true
tags:
- repo
......
......@@ -4,6 +4,6 @@ icinga2_plugin_packages:
- nagios-plugins-common
- ca-certificates
check_pve_packages:
icinga2_plugin_check_pve_dependencies:
- python-enum34
- python-requests
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment