modules: fix examples to use FQCN (#644)

* modules: fix examples to use FQCN

* fix

* fix

* fix
This commit is contained in:
Andrew Klychkov 2020-07-13 22:50:31 +03:00 committed by GitHub
parent 8b92e0454d
commit 41cfdda6a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
533 changed files with 2130 additions and 2130 deletions

View file

@ -77,7 +77,7 @@ notes:
EXAMPLES = '''
- name: Add a new read-only deploy key to a GitHub repository using basic authentication
github_deploy_key:
community.general.github_deploy_key:
owner: "johndoe"
repo: "example"
name: "new-deploy-key"
@ -87,7 +87,7 @@ EXAMPLES = '''
password: "supersecretpassword"
- name: Remove an existing deploy key from a GitHub repository
github_deploy_key:
community.general.github_deploy_key:
owner: "johndoe"
repository: "example"
name: "new-deploy-key"
@ -98,7 +98,7 @@ EXAMPLES = '''
state: absent
- name: Add a new deploy key to a GitHub repository, replace an existing key, use an OAuth2 token to authenticate
github_deploy_key:
community.general.github_deploy_key:
owner: "johndoe"
repository: "example"
name: "new-deploy-key"
@ -107,7 +107,7 @@ EXAMPLES = '''
token: "ABAQDAwXxn7kIMNWzcDfo..."
- name: Re-add a deploy key to a GitHub repository but with a different name
github_deploy_key:
community.general.github_deploy_key:
owner: "johndoe"
repository: "example"
name: "replace-deploy-key"
@ -116,7 +116,7 @@ EXAMPLES = '''
password: "supersecretpassword"
- name: Add a new deploy key to a GitHub repository using 2FA
github_deploy_key:
community.general.github_deploy_key:
owner: "johndoe"
repo: "example"
name: "new-deploy-key-2"
@ -126,7 +126,7 @@ EXAMPLES = '''
otp: 123456
- name: Add a read-only deploy key to a repository hosted on GitHub Enterprise
github_deploy_key:
community.general.github_deploy_key:
github_url: "https://api.example.com"
owner: "janedoe"
repo: "example"

View file

@ -61,7 +61,7 @@ author: "Phillip Gentry, CX Inc (@pcgentry)"
EXAMPLES = '''
- name: Create a new service hook ignoring duplicates
github_hooks:
community.general.github_hooks:
action: create
hookurl: http://11.111.111.111:2222
user: '{{ gituser }}'
@ -71,7 +71,7 @@ EXAMPLES = '''
# 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.
- name: Clean all hooks
github_hooks:
community.general.github_hooks:
action: cleanall
user: '{{ gituser }}'
oauthkey: '{{ oauthkey }}'

View file

@ -46,7 +46,7 @@ get_status:
EXAMPLES = '''
- name: Check if GitHub issue is closed or not
github_issue:
community.general.github_issue:
organization: ansible
repo: ansible
issue: 23642

View file

@ -65,27 +65,27 @@ requirements:
EXAMPLES = '''
- name: Get latest release of a public repository
github_release:
community.general.github_release:
user: ansible
repo: ansible
action: latest_release
- name: Get latest release of testuseer/testrepo
github_release:
community.general.github_release:
token: tokenabc1234567890
user: testuser
repo: testrepo
action: latest_release
- name: Get latest release of test repo using username and password. Ansible 2.4.
github_release:
community.general.github_release:
user: testuser
password: secret123
repo: testrepo
action: latest_release
- name: Create a new release
github_release:
community.general.github_release:
token: tokenabc1234567890
user: testuser
repo: testrepo

View file

@ -86,7 +86,7 @@ author:
EXAMPLES = '''
- name: create a new webhook that triggers on push (password auth)
github_webhook:
community.general.github_webhook:
repository: ansible/ansible
url: https://www.example.com/hooks/
events:
@ -95,7 +95,7 @@ EXAMPLES = '''
password: "{{ github_password }}"
- name: Create a new webhook in a github enterprise installation with multiple event triggers (token auth)
github_webhook:
community.general.github_webhook:
repository: myorg/myrepo
url: https://jenkins.example.com/ghprbhook/
content_type: json
@ -109,7 +109,7 @@ EXAMPLES = '''
github_url: https://github.example.com
- name: Delete a webhook (password auth)
github_webhook:
community.general.github_webhook:
repository: ansible/ansible
url: https://www.example.com/hooks/
state: absent

View file

@ -46,14 +46,14 @@ author:
EXAMPLES = '''
- name: List hooks for a repository (password auth)
github_webhook_info:
community.general.github_webhook_info:
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_info:
community.general.github_webhook_info:
repository: myorg/myrepo
user: "{{ github_user }}"
token: "{{ github_user_api_token }}"