Commit 2f77df7c authored by Blerim Sheqa's avatar Blerim Sheqa

Fix apt repository installation

parent b3e20b40
...@@ -17,10 +17,8 @@ ...@@ -17,10 +17,8 @@
- name: Debian - Add Icinga 2 repository - name: Debian - Add Icinga 2 repository
become: yes become: yes
apt_repository: apt_repository:
repo: {{ item.repo }} repo: "{{ i2_apt_url }}"
state: {{ item.state}} state: present
with_items:
- { repo: "{{ i2_apt_url }}", state: "present" }
when: i2_manage_repository when: i2_manage_repository
- name: Debian - Ensure icinga2 is installed - name: Debian - Ensure icinga2 is installed
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- name: Make sure Icinga 2 is started - name: Make sure Icinga 2 is started
service: service:
name: icinga2 name: icinga2
state: started state: started
enabled: yes enabled: yes
when: i2_manage_service 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