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

Add automated tests with Molecule #18

Merged
merged 4 commits into from
Jan 5, 2022
Merged

Conversation

ajdecon
Copy link
Collaborator

@ajdecon ajdecon commented Jan 4, 2022

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. 😉

Copy link
Member

@lukeyeager lukeyeager left a 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
Copy link
Member

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.
@ajdecon
Copy link
Collaborator Author

ajdecon commented Jan 5, 2022

Added CentOS 8! And confirmed that all tests pass on this branch. 🎉 https://github.com/ajdecon/ansible-role-enroot/runs/4717679877

@ajdecon ajdecon merged commit 6462e09 into NVIDIA:master Jan 5, 2022
- name: enroot rpm packages
yum:
name: "{{ item }}"
state: "{{ enroot_package_state }}"
disable_gpg_check: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #19 #17

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

Successfully merging this pull request may close these issues.

3 participants