bird.yml 849 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: Ensure bird repository key is installed
  3. apt_key:
  4. id: 4A7A714D
  5. data: "{{ lookup('file', 'bird.gpg') }}"
  6. - name: Ensure bird Debian repository is installed
  7. apt_repository: repo='deb http://bird.network.cz/debian {{ ansible_distribution_release }} main'
  8. - name: Ensure bird routing daemon is installed
  9. apt: name=bird install_recommends=no
  10. - name: Ensure bird include dirs exists
  11. file: name=/etc/bird/{{item}} state=directory
  12. with_items:
  13. - conf6.d
  14. - conf.d
  15. - name: Install bird6.conf
  16. template: src=bird6.conf.j2 dest=/etc/bird/bird6.conf
  17. notify: Reload bird daemons
  18. - name: Install bird.conf
  19. template: src=bird.conf.j2 dest=/etc/bird/bird.conf
  20. notify: Reload bird daemons
  21. - name: Enable and start bird and bird6
  22. service: name={{item}} state=started enabled=yes
  23. with_items:
  24. - bird6
  25. - bird