-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add automated tests with Molecule #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre_build_image: true | ||
- name: centos-7 | ||
image: geerlingguy/docker-centos7-ansible | ||
pre_build_image: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could do centos8 too, right? It's listed in meta/main.yml
, at least.
Also minor tweaks to the install process, as the container for CentOS 8 is pickier about GPG key validation than CentOS 7. Note that we disable the GPG check when installing Enroot because the packages on Github are not signed.
Added CentOS 8! And confirmed that all tests pass on this branch. 🎉 https://github.com/ajdecon/ansible-role-enroot/runs/4717679877 |
- name: enroot rpm packages | ||
yum: | ||
name: "{{ item }}" | ||
state: "{{ enroot_package_state }}" | ||
disable_gpg_check: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds some basic automated tests with Ansible Molecule, as well as a Github action to execute them on push and PR.
Also makes some minor changes to the role to get the tests passing. 😉