bind_setup.yml 503 B

12345678910111213141516171819202122232425262728
  1. ---
  2. - name: Install Jinja2
  3. pip:
  4. name: jinja2
  5. - name: Install Bind 9
  6. apt:
  7. name: bind9
  8. - name: Stop the Bind 9 service to run with supervisor
  9. systemd:
  10. name: bind9
  11. state: stopped
  12. enabled: no
  13. - name: Bind9 Config generator
  14. copy:
  15. src: setup_dns_zone
  16. dest: /usr/local/bin/setup_dns_zone
  17. mode: "0755"
  18. - name: Setup bind9 supervisor config
  19. copy:
  20. src: supervisord_bind
  21. dest: /etc/supervisor/conf.d/bind.conf
  22. owner: root
  23. group: root
  24. mode: "0755"