diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4ff93f6..be8670f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: run: pip3 install ansible molecule molecule-plugins[docker] docker - name: Run Molecule tests. - run: molecule test + run: molecule -v test env: PY_COLORS: '1' ANSIBLE_FORCE_COLOR: '1' diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index a715429d..734ad649 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -52,6 +52,9 @@ platforms: pre_build_image: true provisioner: name: ansible + config_options: + defaults: + remote_tmp: /tmp/.ansible-${USER}/tmp/ playbooks: prepare: ${MOLECULE_PLAYBOOK:-../../tests/prepare.yml} converge: ${MOLECULE_PLAYBOOK:-../../tests/playbook.yml} diff --git a/tests/playbook.yml b/tests/playbook.yml index f08f2371..01e19d29 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -1,6 +1,6 @@ --- - hosts: all - remote_user: root + #remote_user: root become: yes vars_files: - ./vars.yml diff --git a/tests/prepare.yml b/tests/prepare.yml index 6dd16f19..48e7cf9b 100644 --- a/tests/prepare.yml +++ b/tests/prepare.yml @@ -6,7 +6,7 @@ #======================================================== - hosts: all - remote_user: root + #remote_user: root become: yes vars_files: - ./vars.yml