Theses playbooks were created to show how we can interact with the GitHub API
You can fin the GitHub API here
- List repository for a user
- Create webhook on repository
- Delete webhook on repository
- Update webhook configs
Different element for python and ansible need to be added in order to execute this outside of an execution environment.
The Ansible collection:
- None
The python libraries:
- jmespath
pip install jmespath
❗ COPY the file inventory/github_values.yml into a local file like github_values-local.yml and use that to provide the variable to the playbooks.
ansible-playbook -i inventory/github_values-local.yml [desired playbook]