powertools: Initial version of module

This commit is contained in:
Timo Makinen 2021-03-17 22:45:13 +00:00
parent 1a148b957f
commit 71d392a556

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"