Repos with recipes to deploy some infrastructure services
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

34 строки
1.1 KiB

  1. ---
  2. - block:
  3. - name: Prefix the version with the correct separator on RedHat
  4. set_fact:
  5. _pdns_package_version: "-{{ pdns_package_version }}"
  6. when: ansible_os_family == 'RedHat'
  7. - name: Prefix the version with the correct separator on Debian
  8. set_fact:
  9. _pdns_package_version: "={{ pdns_package_version }}"
  10. when: ansible_os_family == 'Debian'
  11. when: pdns_package_version != ''
  12. - name: Install the PowerDNS Authoritative Server
  13. package:
  14. name: "{{ pdns_package_name }}{{ _pdns_package_version | default('') }}"
  15. state: present
  16. - name: Install the PowerDNS Authoritative Server debug symbols
  17. package:
  18. name: "{{ pdns_debug_symbols_package_name }}{{ _pdns_package_version | default('') }}"
  19. state: present
  20. when: pdns_install_debug_symbols_package
  21. - name: Install the PowerDNS Authoritative Server backends
  22. package:
  23. name: "{{ pdns_backends_packages[item.key.split(':')[0]] }}{{ _pdns_package_version | default('') }}"
  24. state: present
  25. when: pdns_backends_packages[item.key.split(':')[0]] is defined
  26. with_dict: "{{ pdns_backends }}"