mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Native YAML (#3596)
This commit is contained in:
parent
f4a4492992
commit
951b87492a
3 changed files with 64 additions and 16 deletions
|
@ -77,10 +77,20 @@ author: "Phillip Gentry, CX Inc (@pcgentry)"
|
|||
|
||||
EXAMPLES = '''
|
||||
# Example creating a new service hook. It ignores duplicates.
|
||||
- github_hooks: action=create hookurl=http://11.111.111.111:2222 user={{ gituser }} oauthkey={{ oauthkey }} repo=https://api.github.com/repos/pcgentry/Github-Auto-Deploy
|
||||
- github_hooks:
|
||||
action: create
|
||||
hookurl: 'http://11.111.111.111:2222'
|
||||
user: '{{ gituser }}'
|
||||
oauthkey: '{{ oauthkey }}'
|
||||
repo: 'https://api.github.com/repos/pcgentry/Github-Auto-Deploy'
|
||||
|
||||
# Cleaning all hooks for this repo that had an error on the last update. Since this works for all hooks in a repo it is probably best that this would be called from a handler.
|
||||
- local_action: github_hooks action=cleanall user={{ gituser }} oauthkey={{ oauthkey }} repo={{ repo }}
|
||||
- github_hooks:
|
||||
action: cleanall
|
||||
user: '{{ gituser }}'
|
||||
oauthkey: '{{ oauthkey }}'
|
||||
repo: '{{ repo }}'
|
||||
delegate_to: localhost
|
||||
'''
|
||||
|
||||
def _list(module, hookurl, oauthkey, repo, user):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue