Repos with recipes to deploy some infrastructure services
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

34 líneas
858 B

  1. ---
  2. - name: Install gnupg
  3. package:
  4. name: gnupg
  5. state: present
  6. - name: Import the PowerDNS Authoritative Server APT Repository key
  7. apt_key:
  8. url: "{{ pdns_install_repo['gpg_key'] }}"
  9. id: "{{ pdns_install_repo['gpg_key_id'] | default('') }}"
  10. state: present
  11. register: _pdns_apt_key
  12. - name: Add the PowerDNS Authoritative Server APT Repository
  13. apt_repository:
  14. filename: "{{ pdns_install_repo['name'] }}"
  15. repo: "{{ pdns_install_repo['apt_repo'] }}"
  16. state: present
  17. register: _pdns_apt_repo
  18. - name: Update the APT cache
  19. apt:
  20. update_cache: yes
  21. when: "_pdns_apt_key.changed or _pdns_apt_repo.changed"
  22. - name: Pin the PowerDNS Authoritative Server APT Repository
  23. template:
  24. src: pdns.pin.j2
  25. dest: /etc/apt/preferences.d/pdns
  26. owner: root
  27. group: root
  28. mode: 0644