Преглед изворни кода

Make installation of ntp optional

Emmanuel Bouthenot пре 10 година
родитељ
комит
9475ad55fa
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 2 0
      roles/common/defaults/main.yml
  2. 4 1
      roles/common/tasks/base.yml

+ 2 - 0
roles/common/defaults/main.yml

@@ -25,6 +25,8 @@ with_chkrootkit: False
 with_hideproc: False
 hideproc_gid: ''
 
+with_ntp: True
+
 with_firewall: False
 firewall_public:
   - 'ssh'

+ 4 - 1
roles/common/tasks/base.yml

@@ -27,7 +27,6 @@
     - locales-all
     - locales
     - lsb-release
-    - ntp
     - toilet
     - toilet-fonts
     - facter
@@ -48,6 +47,10 @@
     - etckeeper
     - sharutils
 
+- name: Install ntp daemon
+  apt: pkg=ntp install_recommends=no state=installed update_cache=yes
+  when: with_ntp
+
 - name: Configure default locale and timezone
   debconf: name="{{item.name}}" question="{{item.question}}" value="{{item.value}}" vtype="{{item.vtype}}"
   with_items: