mullholland.repository_epel
Rola Ansible repository_epel
Dodaj repozytorium EPEL do systemu
GitHub | Pobrania | Wersja |
---|---|---|
Przykładowy Playbook
Ten przykład pochodzi z molecule/default/converge.yml
i jest testowany przy każdym pushu, pull requeście i wydaniu.
---
- name: Converge
hosts: all
become: true
gather_facts: true
# vars:
# example_var: "value"
roles:
- role: "mullholland.repository_epel"
Maszyna musi być przygotowana. W CI odbywa się to za pomocą molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: true
roles:
# - role: mullholland.repository_codereadybuilder
# when:
# - (ansible_distribution == "RedHat" and ansible_distribution_major_version == "8") or
# (ansible_distribution == "CentOS" and ansible_distribution_major_version == "9")
- role: mullholland.repository_powertools
when:
- ansible_distribution in [ "CentOS", "Rocky", "AlmaLinux" ]
- ansible_distribution_major_version == "8"
Zmienna roli
Domyślne wartości dla zmiennych są ustawione w defaults/main.yml
:
---
repository_epel_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ repository_epel_version }}"
_repository_epel_version:
RedHat:
"7": 7
"8": 8
CentOS:
"7": 7
"8": 8
"9": 9
Rocky:
"8": 8
AlmaLinux:
"8": 8
Amazon:
"2": 7
repository_epel_version: "{{ _repository_epel_version[ansible_distribution][ansible_distribution_major_version] }}"
repository_epel_packages:
RedHat:
"7":
- "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
"8":
- "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm"
CentOS:
"7":
- "epel-release"
"8":
- "epel-release"
- "epel-next-release"
"9":
- "https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm"
- "https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm"
Rocky:
"8":
- "epel-release"
AlmaLinux:
"8":
- "epel-release"
Amazon:
"2":
- "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
Wymagania
- Pakiety pip wymienione w requirements.txt.
Kontekst
Ta rola jest częścią wielu zgodnych ról. Zapoznaj się z dokumentacją tych ról aby uzyskać więcej informacji.
Oto przegląd powiązanych ról:
Kompatybilność
Ta rola została przetestowana na tych obrazach kontenerów:
kontener | tagi |
---|---|
EL | wszystkie |
Amazon | Kandydat |
Minimalna wersja Ansible wymagana to 2.10, testy przeprowadzono dla:
- Poprzedniej wersji.
- Bieżącej wersji.
- Wersji deweloperskiej.
Jeśli napotkasz problemy, zgłoś je na GitHub.
Licencja
MIT.
Informacje o autorze
Zainstaluj
ansible-galaxy install mullholland.repository_epel
Licencja
apache-2.0
Pobrania
4.8k
Właściciel