Add powertools-repo
This commit is contained in:
parent
e2608d9b90
commit
c56b889f24
1 changed files with 18 additions and 0 deletions
18
powertools-repo/tasks/main.yml
Normal file
18
powertools-repo/tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
- name: check if repository is enabled
|
||||||
|
command:
|
||||||
|
argv:
|
||||||
|
- cat
|
||||||
|
- /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
|
||||||
|
changed_when: false
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- name: enable repository
|
||||||
|
command:
|
||||||
|
argv:
|
||||||
|
- dnf
|
||||||
|
- config-manager
|
||||||
|
- --set-enabled
|
||||||
|
- powertools
|
||||||
|
warn: false
|
||||||
|
when: "'enabled=1' not in result.stdout_lines"
|
Loading…
Add table
Reference in a new issue