mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Include Rocky linux in DNF setup
This commit is contained in:
parent
5e67feaf04
commit
cc84bd8050
@ -2,14 +2,14 @@
|
|||||||
# See: https://github.com/geerlingguy/ansible-role-certbot/issues/107
|
# See: https://github.com/geerlingguy/ansible-role-certbot/issues/107
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: Ensure dnf-plugins are installed on CentOS 8+.
|
- name: Ensure dnf-plugins are installed on CentOS/Rocky 8+.
|
||||||
yum:
|
yum:
|
||||||
name: dnf-plugins-core
|
name: dnf-plugins-core
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: Enable DNF module for CentOS 8.3+.
|
- name: Enable DNF module for CentOS/Rocky 8.3+.
|
||||||
shell: |
|
shell: |
|
||||||
dnf config-manager --set-enabled powertools
|
dnf config-manager --set-enabled powertools
|
||||||
register: dnf_module_enable
|
register: dnf_module_enable
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
when: ansible_facts['distribution_version'] is version('8.3', '>=')
|
when: ansible_facts['distribution_version'] is version('8.3', '>=')
|
||||||
|
|
||||||
- name: Enable DNF module for CentOS 8.0–8.2.
|
- name: Enable DNF module for CentOS/Rocky 8.0–8.2.
|
||||||
shell: |
|
shell: |
|
||||||
dnf config-manager --set-enabled PowerTools
|
dnf config-manager --set-enabled PowerTools
|
||||||
register: dnf_module_enable
|
register: dnf_module_enable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user