feat: add Debian-like support

This commit is contained in:
Wallun 2022-05-25 22:33:53 +02:00
parent aa7da8289a
commit f9656af8bf
Signed by: wallun
GPG Key ID: 71D17013D836735B
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@
This role installs python3 on using the *raw* module, as it is a requirement for
ansible to run.
It currently supports Archlinux-likes, RHEL-likes and Debian-likes.
# Example Playbook

View File

@ -28,3 +28,18 @@
tags:
- raw
- 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