2022-03-18 18:07:25 +00:00
|
|
|
---
|
|
|
|
- name: Prepare
|
|
|
|
hosts: all
|
2024-02-03 21:33:14 +00:00
|
|
|
gather_facts: False
|
2022-03-18 18:07:25 +00:00
|
|
|
tasks:
|
2024-02-03 21:47:06 +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-02-03 21:33:14 +00:00
|
|
|
changed_when: False
|