Repos with recipes to deploy some infrastructure services
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

48 řádky
1.5 KiB

  1. ---
  2. - block:
  3. - name: Install epel-release on CentOS
  4. yum:
  5. name: epel-release
  6. state: latest
  7. update_cache: true
  8. when: ansible_facts.distribution in [ 'CentOS' ]
  9. - name: Install epel-release on RHEL/OracleLinux
  10. yum:
  11. name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_facts.distribution_major_version }}.noarch.rpm"
  12. state: present
  13. when: ansible_facts.distribution in [ 'RedHat', 'OracleLinux' ]
  14. when: pdns_install_epel
  15. - name: Install yum-plugin-priorities
  16. package:
  17. name: yum-plugin-priorities
  18. state: present
  19. when: ansible_facts.distribution in [ 'CentOS' ]
  20. - name: Add the PowerDNS Authoritative Server YUM Repository
  21. yum_repository:
  22. name: "{{ pdns_install_repo['name'] }}"
  23. file: "{{ pdns_install_repo['name'] }}"
  24. description: PowerDNS Authoritative Server
  25. baseurl: "{{ pdns_install_repo['yum_repo_baseurl'] }}"
  26. gpgkey: "{{ pdns_install_repo['gpg_key'] }}"
  27. gpgcheck: yes
  28. priority: 90
  29. state: present
  30. - name: Add the PowerDNS Authoritative Server debug symbols YUM Repository
  31. yum_repository:
  32. name: "{{ pdns_install_repo['name'] }}-debuginfo"
  33. file: "{{ pdns_install_repo['name'] }}"
  34. description: PowerDNS Authoritative Server - debug symbols
  35. baseurl: "{{ pdns_install_repo['yum_debug_symbols_repo_baseurl'] }}"
  36. gpgkey: "{{ pdns_install_repo['gpg_key'] }}"
  37. gpgcheck: yes
  38. priority: 90
  39. state: present
  40. when: pdns_install_debug_symbols_package