mirror of
https://git.hogwarts.fr/hogwarts-ansible/bootstrap_python.git
synced 2023-12-14 06:32:59 +01:00
feat(tasks): install python3 on rhel
This commit is contained in:
parent
59c78e6fa9
commit
d636fa002b
1 changed files with 15 additions and 0 deletions
|
@ -13,3 +13,18 @@
|
|||
tags:
|
||||
- raw
|
||||
- install
|
||||
|
||||
- name: raw | Install python3 on RHEL
|
||||
raw: |
|
||||
test -e /usr/bin/dnf &&\
|
||||
dnf install -yq python3 ||\
|
||||
echo "dnf not available on this host" &&\
|
||||
exit 0;
|
||||
become: true
|
||||
register: dnf
|
||||
changed_when: |
|
||||
('is already installed' not in dnf.stdout) and
|
||||
('dnf not available on this host' not in dnf.stdout)
|
||||
tags:
|
||||
- raw
|
||||
- install
|
||||
|
|
Loading…
Reference in a new issue