소스 검색

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

Till Klocke 9 년 전
부모
커밋
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