Explorar el Código

The bird role can now omit the configration of the daemon to leave this to other roles

Till Klocke hace 10 años
padre
commit
e0366cf040
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  1. 3 1
      roles/bird/defaults/main.yml
  2. 3 0
      roles/bird/tasks/main.yml

+ 3 - 1
roles/bird/defaults/main.yml

@@ -1,2 +1,4 @@
 ---
-# defaults file for bird
+# defaults file for bird
+
+bird_configure: true

+ 3 - 0
roles/bird/tasks/main.yml

@@ -13,14 +13,17 @@
   file: name={{bird_config_dir}} state=directory
 
 - name: Install bird.conf
+  when: bird_configure
   template: src=bird.conf.j2 dest={{bird_config_dir}}/bird.conf
   notify: Restart bird daemons
 
 - name: Install bird6.conf
+  when: bird_configure
   template: src=bird6.conf.j2 dest={{bird_config_dir}}/bird6.conf
   notify: Restart bird daemons
 
 - name: Enable and start bird and bird6
+  when: bird_configure
   service: name={{item}} state=started enabled=yes
   with_items:
     - bird