feat(tasks): install python3 on archlinux

This commit is contained in:
Wallun 2021-11-28 13:23:53 +01:00
parent 8f9c4f3938
commit 59c78e6fa9
Signed by: wallun
GPG Key ID: 71D17013D836735B
1 changed files with 15 additions and 0 deletions

15
tasks/main.yaml Normal file
View File

@ -0,0 +1,15 @@
---
- name: raw | Install python3 on archlinux
raw: |
test -e /bin/pacman &&\
pacman -S python3 --asexplicit --noconfirm ||\
echo "pacman not available on this host" &&\
exit 0;
become: true
register: pacman
changed_when: |
('reinstalling python' not in pacman.stdout) and
('pacman not available on this host' not in pacman.stdout)
tags:
- raw
- install