Commit f69e0efd authored by Andrew Klaus's avatar Andrew Klaus
Browse files

Fixing with_item variable wrapping to support ansible 2.2+'s requirement

parent f4af2fd8
---
- name: Install Icinga Classic UI on Debian OS family
apt: pkg={{ item.package }}
apt: pkg={{ item.package }}
state=latest
update_cache=yes
cache_valid_time=30
with_items: icinga2_classic_ui_pkg
with_items: "{{ icinga2_classic_ui_pkg }}"
- name: Configure a password for icingaadmin user
htpasswd: name=icingaadmin
......@@ -12,7 +12,7 @@
path={{ htpasswd_deb }}
create=no
password={{ icinga2_classic_ui_passwd }}
notify:
notify:
- restart apache2
- name: Icinga Classic UI Installation finished (Debian)
......
......@@ -28,7 +28,7 @@
- name: Install Icinga Classic UI on Gentoo OS family
portage: package={{ item.package }}
state=present
with_items: icinga2_classic_ui_ebuilds
with_items: "{{ icinga2_classic_ui_ebuilds }}"
- name: Configure password for icingaadmin user
htpasswd: name=icingaadmin
......
......@@ -2,7 +2,7 @@
- name: Install Icinga Classic UI on RedHat OS family
yum: name={{ item.package }}
state=latest
with_items: icinga2_classic_ui_rpm
with_items: "{{ icinga2_classic_ui_rpm }}"
notify:
- restart icinga2
- restart httpd
......
......@@ -9,7 +9,7 @@
- name: Install Icinga Web on RedHat OS family
yum: name={{ item.package }}
state=latest
with_items: icinga2_web_ui_rpm
with_items: "{{ icinga2_web_ui_rpm }}"
- name: Create a Database for Icinga Web
mysql_db: name={{ icinga2_web_db_dbuser }}
......
......@@ -2,7 +2,7 @@
- name: Install MariaDB and Utils on Red Hat OS Family (based on your choice in icinga2_web_ui_ido value)
yum: name={{ item.package }}
state=latest
with_items: icinga2_web_ui_mariadb_rpm
with_items: "{{ icinga2_web_ui_mariadb_rpm }}"
when: ansible_distribution_major_version == "7"
- name: Start MariaDB
......
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