ansible / ansible.builtin / v2.8.20 / module / github_webhook_facts Query information about GitHub webhooks | "added in version" 2.8 of ansible.builtin" Authors: Chris St. Pierre (@stpierre) preview | supported by communityansible.builtin.github_webhook_facts (v2.8.20) — module
pip
Install with pip install ansible==2.8.20
Query information about GitHub webhooks
- name: list hooks for a repository (password auth) github_webhook_facts: repository: ansible/ansible user: "{{ github_user }}" password: "{{ github_password }}" register: ansible_webhooks
- name: list hooks for a repository on GitHub Enterprise (token auth) github_webhook_facts: repository: myorg/myrepo user: "{{ github_user }}" token: "{{ github_user_api_token }}" github_url: https://github.example.com/api/v3/ register: myrepo_webhooks
user: description: - User to authenticate to GitHub as required: true token: description: - Token to authenticate to GitHub with required: false password: description: - Password to authenticate to GitHub with required: false github_url: default: https://api.github.com description: - Base URL of the github api required: false repository: aliases: - repo description: - Full name of the repository to configure a hook for required: true
hooks: description: A list of hooks that exist for the repo returned: always sample: "[{\"has_shared_secret\": true,\n \"url\": \"https://jenkins.example.com/ghprbhook/\"\ ,\n \"events\": [\"issue_comment\", \"pull_request\"],\n \"insecure_ssl\": \"\ 1\",\n \"content_type\": \"json\",\n \"active\": true,\n \"id\": 6206,\n \"\ last_response\": {\"status\": \"active\", \"message\": \"OK\", \"code\": 200}}]\n" type: list