ansible-role-docker
ansible-role-docker copied to clipboard
CI: Add Arch Linux to the test matrix
Hi again,
#336 introduced a regression because a parameter has been added which is only present for Red Hat and Debian systems, but croaks, for example, on Arch Linux. Thanks for reporting it through #346, @adamantike.
When adding other Linux distributions to the test suite, errors like this might get caught early. If this patch turns out to work sucessfully and is welcome in general, #352 should be based upon it.
With kind regards, Andreas.
P.S.: This patch has been inspired by suggestions from others. Kudos!
- https://github.com/ansible-community/molecule/discussions/3410
- How to perform string manipulation while declaring env vars in GitHub Actions
- Error When Testing Archlinux with Ansible Molecule
This still fails on "converge" at [1], like:
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-1652730294.824226-2282-98062810097350 `\" && echo ansible-tmp-1652730294.824226-2282-98062810097350=\"` echo ~/.ansible/tmp/ansible-tmp-1652730294.824226-2282-98062810097350 `\" ), exited with result 1", "unreachable": true}
An extensive report about the problem can be found at https://stackoverflow.com/a/67346654.
However, different kinds of variations of those additonal options in molecule.yml did not help.
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
Iterating through those images did not help either.
CI_IMAGE: mesaguy/ansible-molecule-archlinux:latest
CI_IMAGE: carlodepieri/docker-archlinux-ansible:latest
CI_IMAGE: ghcr.io/avnes/molecule-arch:latest
It looks like the molecule container launcher has specific problems on bringing up an Arch Linux instance.
[1] https://github.com/geerlingguy/ansible-role-docker/runs/6458968867#step:7:113
If doing this, would be good to add Arch to the supported distros, too https://github.com/geerlingguy/ansible-role-docker/blob/master/meta/main.yml#L11
This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark pull requests as stale.
This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.