You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
defaults | 2 years ago | |
github/workflows | 2 years ago | |
meta | 2 years ago | |
molecule | 2 years ago | |
tasks | 2 years ago | |
vars | 2 years ago | |
.ansible-lint | 2 years ago | |
.pre-commit-config.yaml | 2 years ago | |
.yamllint | 2 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago |
README.md
CI Badge
Ansible template role
Role that fulfills $x need and there was not some sort of equivalent elsewhere.
Getting started
Ensure all dependencies are installed/met and then do the following:
- Get the development repository:
git clone repo
- Install pre-commit:
pre-commit install
- Make edits as required as well as following the customization section
- Run
pre-commit
to ensure we're good - Do your necessary development work for this role
- Run
pre-commit
again to ensure you're good to go. - Optional:
molecule converge
Dependencies
This repo expects 3 things installed on your local machine:
Customization
Note that this is optional and not a full requirement for your role.
- molecule/requirements.yml - Update with any required roles or collections that you may be leveraging for your role.
- molecule/default/converge.yml - Update with your role name
- molecule/default/molecule.yml - Update with desired distributions and extra playbooks if necessary
- github - Rename this to
.github
and thengit push
, this will set up yamllint, ansible-lint and a CI check job for themain
branch- Note that if you are using a SAML token, this may fail. You can created the files within the Github web app.
Optional
The github actions are configured to run the molecule tests automatically, but if you want to load them locally, you will need to install molecule to your machine.
Changelog
The changelog is stored externally