feat(tasks): install python3 on rhel
This commit is contained in:
parent
59c78e6fa9
commit
d636fa002b
|
@ -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 New Issue