Repos with recipes to deploy some infrastructure services
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

34 lignes
872 B

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