diff --git a/tasks/main.yaml b/tasks/main.yaml new file mode 100644 index 0000000..425e2da --- /dev/null +++ b/tasks/main.yaml @@ -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