[icinga-checkins] icinga.org: icinga2-ansible/master: Remove useless conditions

git at icinga.org git at icinga.org
Tue Aug 23 11:58:58 CEST 2016


Module: icinga2-ansible
Branch: master
Commit: 9d23049fa9104b93446fc72d369c8590e7f39363
URL:    https://git.icinga.org/?p=icinga2-ansible.git;a=commit;h=9d23049fa9104b93446fc72d369c8590e7f39363

Author: Raphaël B <raphb.bis at gmail.com>
Date:   Tue Aug 23 10:09:18 2016 +0200

Remove useless conditions

The "when" condition is handle by main.yml.

---

 icinga2-ansible-no-ui/tasks/icinga2_Debian_install.yml |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/icinga2-ansible-no-ui/tasks/icinga2_Debian_install.yml b/icinga2-ansible-no-ui/tasks/icinga2_Debian_install.yml
index 7ee143a..fafa078 100644
--- a/icinga2-ansible-no-ui/tasks/icinga2_Debian_install.yml
+++ b/icinga2-ansible-no-ui/tasks/icinga2_Debian_install.yml
@@ -1,7 +1,6 @@
 ---
 - name: Install https for apt (Debian)
   apt: name=apt-transport-https state=present
-  when: ansible_distribution == 'Debian'
 
 - name: Get Icinga2 Apt Key for Debian OS family
   apt_key: url={{ icinga2_key }} 
@@ -11,7 +10,6 @@
 - name: Get Debmon Apt Key for Debian OS family (Debian)
   apt_key: url={{ icinga2_debmon_key }} 
            state=present
-  when: ansible_distribution == 'Debian'
 
 - name: Get Icinga2 Apt Repos for Debian OS family
   apt_repository: repo='{{ item.repo }}' 
@@ -24,7 +22,6 @@
   apt_repository: repo='{{ icinga2_debmon_repo }}' 
                   update_cache=yes 
                   state=present
-  when: ansible_distribution == 'Debian'
 
 - name: Install Icinga2 on Debian OS family
   apt: pkg={{ item.package }} 



More information about the icinga-checkins mailing list