Add powertools-repo

This commit is contained in:
Timo Makinen 2021-09-01 14:21:48 +00:00
parent e2608d9b90
commit c56b889f24

View 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"