Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup tests with Molecule ? #83

Open
N07070 opened this issue Jun 21, 2022 · 4 comments
Open

Setup tests with Molecule ? #83

N07070 opened this issue Jun 21, 2022 · 4 comments

Comments

@N07070
Copy link
Contributor

N07070 commented Jun 21, 2022

It would be nice for this role to be tested against a molecule configuration. Makes it easier to catch easy mistakes ! :)

@DO1JLR
Copy link
Member

DO1JLR commented Jun 21, 2022

Yes indeed.

Unfortunately, I have never seriously dealt with molecule. I had once built github actions that run ansible to notice gross errors, but docker containers with systemd tasks didn't work for me (yet). See https://github.com/marketplace/actions/check-ansible-debian-latest

Do you maybe have a molecule setup you'd like to share with this ansible role running via github action @N07070 ? Then I would be very interested in that.

@N07070
Copy link
Contributor Author

N07070 commented Jun 21, 2022

I'm not sure about using github actions, as I favor using self-hosted git and CI solutions. But I'd me happy to add local testing with molecule for role development soon.

@Raptus1
Copy link

Raptus1 commented Oct 5, 2022

@DO1JLR Just came over this repo looking for a nice ansible playbook for installing gitea and found this issue.

For containers, I recommend using the different types of containers from geerlingguy with systemd-integration for testing with molecule:

https://hub.docker.com/r/geerlingguy/docker-rockylinux8-ansible
is one of them, but there is also images available for RHEL, CentOS, Debian, Ubuntu, etc.

@DO1JLR
Copy link
Member

DO1JLR commented Oct 6, 2022

thanks @Raptus1, looks interesting 😘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants