[icinga-checkins] icinga.org: icinga2-ansible/master: Added install_recommends= no in order to prevent Nagios3 to be installed

git at icinga.org git at icinga.org
Fri Jun 13 18:20:08 CEST 2014


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

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Fri Jun 13 18:17:56 2014 +0200

Added install_recommends=no in order to prevent Nagios3 to be installed

---

 tasks/icinga2_install_Debian.yml |    5 ++++-
 tasks/icinga2_install_Ubuntu.yml |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/tasks/icinga2_install_Debian.yml b/tasks/icinga2_install_Debian.yml
index 64e2c3a..44f42ca 100644
--- a/tasks/icinga2_install_Debian.yml
+++ b/tasks/icinga2_install_Debian.yml
@@ -8,7 +8,10 @@
   with_items: icinga2_repos
 
 - name: Install Icinga2 on Debian OS family (Debian)
-  apt: pkg={{ item.package }} state=latest
+  apt: pkg={{ item.package }} 
+       update_cache=yes
+       state=latest
+       install_recommends=no
   with_items: icinga2_pkg
   notify:
    - restart icinga2
diff --git a/tasks/icinga2_install_Ubuntu.yml b/tasks/icinga2_install_Ubuntu.yml
index a3fa993..2dd2aba 100644
--- a/tasks/icinga2_install_Ubuntu.yml
+++ b/tasks/icinga2_install_Ubuntu.yml
@@ -7,7 +7,10 @@
   with_items: icinga2_repos
 
 - name: Install Icinga2 on Debian OS family (Ubuntu)
-  apt: pkg={{ item.package }} state=latest
+  apt: pkg={{ item.package }} 
+       update_cache=yes
+       state=latest
+       install_recommends=no
   with_items: icinga2_pkg
   notify:
    - restart icinga2



More information about the icinga-checkins mailing list