xoxys.cacerts/molecule/default/prepare.yml

12 lines
357 B
YAML
Raw Permalink Normal View History

2024-02-18 19:12:31 +00:00
---
- name: Prepare
hosts: all
gather_facts: False
tasks:
- 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.")
changed_when: False