This is a repository template for Ansible roles. See GitHub's documentation on how to create a repository from a template.
This template runs tests using Ansible Molecule. Automated tests have been configured to run on GitHub actions in the .github/workflows/ci.yml file. The Docker Molecule driver is used to run the tests. The following pip packages are required (if you were to run Ansible Molecule locally):
- molecule 3.x.x (Install by running
pip install "molecule>=3,<4"
) - docker-py
After you create your repository from this template:
- Replace all occurrences of "ansible-role" with the name of your role. If your role is, for instance, called "ansible-superset", make the change using
find . -type f | xargs sed -i 's/ansible-role/ansible-superset/g'
. - Set the
ansible_galaxy_api_key
secret in your repository's settings to enable publishing tags to Ansible Galaxy. - Update the owner and date in the LICENSE file.
- Update the value of role_name, min_ansible_version, supported platforms, and description in meta/main.yml. In the example, set role_name to "superset", if you intend for the role to be "onaio.superset" within Ansible Galaxy.
- Fill in the sections within the README.md file.