Enable PowerTools on CentOS Stream
This commit is contained in:
parent
4e5ef72bb1
commit
6094f9c46f
1 changed files with 12 additions and 0 deletions
|
@ -1,4 +1,16 @@
|
||||||
---
|
---
|
||||||
|
- name: Check for CentOS-Stream-PowerTools.repo file
|
||||||
|
stat:
|
||||||
|
path: /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
|
||||||
|
register: pt
|
||||||
|
- name: Enable CentOS Stream PowerTools repository
|
||||||
|
become: true
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
|
||||||
|
create: false
|
||||||
|
regexp: ^enabled=
|
||||||
|
line: enabled=1
|
||||||
|
when: ansible_distribution == 'CentOS' and pt.stat.exists
|
||||||
- name: Install CLI packages
|
- name: Install CLI packages
|
||||||
become: true
|
become: true
|
||||||
dnf:
|
dnf:
|
||||||
|
|
Loading…
Reference in a new issue