feat: add Debian-like support
This commit is contained in:
parent
aa7da8289a
commit
f9656af8bf
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
This role installs python3 on using the *raw* module, as it is a requirement for
|
This role installs python3 on using the *raw* module, as it is a requirement for
|
||||||
ansible to run.
|
ansible to run.
|
||||||
|
It currently supports Archlinux-likes, RHEL-likes and Debian-likes.
|
||||||
|
|
||||||
# Example Playbook
|
# Example Playbook
|
||||||
|
|
||||||
|
|
|
@ -28,3 +28,18 @@
|
||||||
tags:
|
tags:
|
||||||
- raw
|
- raw
|
||||||
- install
|
- install
|
||||||
|
|
||||||
|
- name: raw | install python3 on Debian
|
||||||
|
ansible.builtin.raw: |
|
||||||
|
test -e /usr/bin/apt &&\
|
||||||
|
apt install python3 ||\
|
||||||
|
echo "apt is not available on this host" &&\
|
||||||
|
exit 0;
|
||||||
|
become: true
|
||||||
|
register: apt
|
||||||
|
changed_when: |
|
||||||
|
('python3 is already' not in apt.stdout) and
|
||||||
|
('apt is not available on this host' not in apt.stdout)
|
||||||
|
tags:
|
||||||
|
- raw
|
||||||
|
- install
|
||||||
|
|
Loading…
Reference in New Issue