Repos with recipes to deploy some infrastructure services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.5 KiB

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