xoxys.openvpn_client/molecule/centos7/prepare.yml

16 lines
504 B
YAML
Raw Normal View History

2020-05-15 08:34:57 +00:00
---
- name: Prepare
hosts: all
gather_facts: false
tasks:
2020-10-02 07:32:17 +00:00
- 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."
)
2020-05-15 08:34:57 +00:00
become: true
changed_when: false