cookiecutter-ansible-role/{{cookiecutter.author}}.{{cookiecutter.role_name}}/molecule/{{cookiecutter.molecule_scenario | replace('-', '')}}/prepare.yml

10 lines
257 B
YAML
Raw Normal View History

2020-01-30 08:13:03 +00:00
---
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (dnf -y install python3 && alternatives --set python /usr/bin/python3)
become: true
changed_when: false