xoxys.docker_engine/molecule/rocky9/prepare.yml
Robert Kaussow e9e83d2f8d
All checks were successful
continuous-integration/drone/push Build is passing
feat: add option to add custom unit override options (#5)
Reviewed-on: #5
2023-06-05 22:55:25 +02:00

16 lines
504 B
YAML

---
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Bootstrap python for Ansible
raw: |
command -v python3 python || (
(test -e /usr/bin/dnf && sudo dnf install -y python3) ||
(test -e /usr/bin/apt && (apt -y update && apt install -y python-minimal)) ||
(test -e /usr/bin/yum && sudo yum -y -qq install python3) ||
echo "Warning: Python not boostrapped due to unknown platform."
)
become: true
changed_when: false