xoxys.dnsmasq/molecule/default/prepare.yml
Robert Kaussow d55fc84fe9
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful
refctor: rework ci to ue ansible-lint and fix molecule
2024-08-19 10:25:06 +02:00

16 lines
464 B
YAML

---
- 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
retries: 3
delay: 5
register: __bootstrap_python
until: __bootstrap_python.rc == 0