xoxys.chrony/molecule/default/prepare.yml

16 lines
464 B
YAML
Raw Normal View History

2024-02-15 15:02:51 +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
2024-08-19 08:19:32 +00:00
retries: 3
delay: 5
register: __bootstrap_python
until: __bootstrap_python.rc == 0