xoxys.droneci_autoscaler/molecule/rocky8/prepare.yml
Robert Kaussow 16fd851d08
Some checks failed
continuous-integration/drone/pr Build is failing
feat: add test for Rocky Linux 8
2021-10-03 16:32:32 +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