diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index bf1e57a..48c34f8 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -9,8 +9,8 @@ lint: | ansible-lint -c molecule/default/ansible-lint.yml . flake8 platforms: - - name: "${MOLECULE_INSTANCE_NAME:-systemd-ubuntu-18.04}" - image: "${MOLECULE_DISTRO:-jrei/systemd-ubuntu:18.04}" + - name: "${MOLECULE_INSTANCE_NAME:-systemd-ubuntu-20.04}" + image: "${MOLECULE_DISTRO:-jrei/systemd-ubuntu:20.04}" volumes: - /sys/fs/cgroup:/sys/fs/cgroup:ro published_ports: @@ -27,5 +27,4 @@ provisioner: scenario: name: default verifier: - name: testinfra - enabled: false + name: ansible diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 02c479d..1ebc898 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -37,7 +37,7 @@ easyrsa_download: [] easyrsa_download_pki: true - easyrsa_download_dir: '~/' + easyrsa_download_dir: '~' pre_tasks: - name: Install packages required by ansible modules package: @@ -49,3 +49,11 @@ packages: - gnupg - software-properties-common + + - name: Install sudo + raw: apt install -y sudo + + - name: Ensure /etc/easyrsa/pki directory exists + file: + path: /etc/easyrsa/pki + state: directory \ No newline at end of file