Use variable method for listing package installs in ubuntu/roles/icinga-client/tasks/main.yml
This commit is contained in:
parent
7bfa5fa8d1
commit
e0f2bedf62
@ -6,8 +6,9 @@
|
|||||||
- name: Add Icinga apt repository
|
- name: Add Icinga apt repository
|
||||||
apt_repository: repo="deb https://packages.icinga.com/ubuntu icinga-{{ ansible_distribution_release }} main" state=present
|
apt_repository: repo="deb https://packages.icinga.com/ubuntu icinga-{{ ansible_distribution_release }} main" state=present
|
||||||
- name: Update apt cache and install Icinga packages
|
- name: Update apt cache and install Icinga packages
|
||||||
apt: name={{ item }} state=latest update_cache=yes
|
apt: name={{ packages }} state=latest update_cache=yes
|
||||||
with_items:
|
vars:
|
||||||
|
packages:
|
||||||
- icinga2
|
- icinga2
|
||||||
- monitoring-plugins
|
- monitoring-plugins
|
||||||
- name: Ensure icinga2 systemd folder exists
|
- name: Ensure icinga2 systemd folder exists
|
||||||
|
Loading…
Reference in New Issue
Block a user