diff --git a/molecule/centos8/playbook.yml b/molecule/centos8/playbook.yml index 20e0d39..1fd2959 100644 --- a/molecule/centos8/playbook.yml +++ b/molecule/centos8/playbook.yml @@ -2,6 +2,7 @@ - name: Converge hosts: all vars: + ansible_python_interpreter: /usr/libexec/platform-python lvm_volumes: - name: lv_test group: vg_test diff --git a/molecule/centos8/prepare.yml b/molecule/centos8/prepare.yml index 4b18d48..559de83 100644 --- a/molecule/centos8/prepare.yml +++ b/molecule/centos8/prepare.yml @@ -4,6 +4,6 @@ gather_facts: false tasks: - name: Install python for Ansible - raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) + raw: test -e /usr/bin/python || (dnf -y install python3 && alternatives --set python /usr/bin/python3) become: true changed_when: false