2024-01-25 09:04:31 +00:00
|
|
|
---
|
|
|
|
- name: Prepare
|
|
|
|
hosts: all
|
|
|
|
gather_facts: False
|
|
|
|
tasks:
|
2024-02-15 09:29:24 +00:00
|
|
|
- name: Bootstrap Python for Ansible
|
|
|
|
ansible.builtin.raw: |
|
|
|
|
command -v python3 python ||
|
|
|
|
((test -e /usr/bin/apt && (apt -y update && apt install -y python-minimal)) ||
|
|
|
|
echo "Warning: Python not boostrapped due to unknown platform.")
|
2024-01-25 09:04:31 +00:00
|
|
|
changed_when: False
|