Playground to find out how to configure molecule to test roles that include tags. Used platform is docker
.
Problem exists when using
➜ molecule --version
molecule 4.0.4 using python 3.10
ansible:2.14.2
delegated:4.0.4 from molecule
docker:2.0.0 from molecule_docker requiring collections: community.docker>=3.0.0-a2
and
molecule-plugins-22.1.0
Default Scenario runs sucessfull without tags.
molecule test
tag1
Scenario should call the role with tags.
molecule test -s tag1
molecule fails with the following error:
INFO Running tag1 > converge
PLAY [Converge] ****************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp `\"&& mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1681307516.0007918-103748-115900764144251 `\" && echo ansible-tmp-1681307516.0007918-103748-115900764144251=\"` echo ~/.ansible/tmp/ansible-tmp-1681307516.0007918-103748-115900764144251 `\" ), exited with result 1", "unreachable": true}
PLAY RECAP *********************************************************************
instance : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Update molecule to 5.0.0 and molecule-plugins to 23.4.0.