From cac1ab20b28284aec9cf9d7ce6d5b44e49b24e57 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 26 Jan 2020 16:02:02 +0100 Subject: [PATCH] fix centos 8 testing --- molecule/centos8/playbook.yml | 1 + molecule/centos8/prepare.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/molecule/centos8/playbook.yml b/molecule/centos8/playbook.yml index d3cd455..0f73721 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 smb_shares: - name: multimedia source: //share.example.com/media 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