Rename roles according to ansible recommendations
This commit is contained in:
parent
ce37f81e76
commit
bc5eda7487
17 changed files with 8 additions and 8 deletions
21
powertools_repo/tasks/main.yml
Normal file
21
powertools_repo/tasks/main.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- name: check if repository is enabled
|
||||
command:
|
||||
argv:
|
||||
- dnf
|
||||
- config-manager
|
||||
- --dump
|
||||
- powertools
|
||||
warn: false
|
||||
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
Add a link
Reference in a new issue