فهرست منبع

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

Till Klocke 10 سال پیش
والد
کامیت
e0366cf040
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  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