Commit b3e20b40 authored by Blerim Sheqa's avatar Blerim Sheqa

Fix stanza format for parameter assignment

parent 04b813ad
......@@ -3,7 +3,7 @@
- name: start icinga2
become: yes
service:
name=icinga2
state=started
enabled=yes
name: icinga2
state: started
enabled: yes
when: i2_manage_service
......@@ -3,22 +3,22 @@
- name: Debian - Install apt-transport-https
become: yes
apt:
name=apt-transport-https
state=present
name: apt-transport-https
state: present
when: i2_manage_repository
- name: Debian - Add Icinga 2 repository key
become: yes
apt_key:
url="{{ i2_apt_key }}"
state=present
url: "{{ i2_apt_key }}"
state: present
when: i2_manage_repository and i2_apt_key
- name: Debian - Add Icinga 2 repository
become: yes
apt_repository:
repo={{ item.repo }}
state={{ item.state}}
repo: {{ item.repo }}
state: {{ item.state}}
with_items:
- { repo: "{{ i2_apt_url }}", state: "present" }
when: i2_manage_repository
......@@ -26,7 +26,7 @@
- name: Debian - Ensure icinga2 is installed
become: yes
apt:
name=icinga2
state=present
name: icinga2
state: present
notify: start icinga2
when: i2_manage_package
......@@ -3,14 +3,14 @@
- name: RedHat - Add Icinga 2 repository
become: yes
template:
src=ICINGA-release.repo
dest=/etc/yum.repos.d/ICINGA-release.repo
src: ICINGA-release.repo
dest: /etc/yum.repos.d/ICINGA-release.repo
when: i2_manage_repository
- name: RedHat - Ensure icinga2 is installed
become: yes
yum:
name=icinga2
state=present
name: icinga2
state: present
notify: start icinga2
when: i2_manage_package
......@@ -6,7 +6,7 @@
- name: Make sure Icinga 2 is started
service:
name=icinga2
state=started
enabled=yes
name: icinga2
state: started
enabled: yes
when: i2_manage_service
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