mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
modules: fix examples to use FQCN (#644)
* modules: fix examples to use FQCN * fix * fix * fix
This commit is contained in:
parent
8b92e0454d
commit
41cfdda6a3
533 changed files with 2130 additions and 2130 deletions
|
@ -61,7 +61,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: "Adding a project deploy key"
|
||||
gitlab_deploy_key:
|
||||
community.general.gitlab_deploy_key:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ api_token }}"
|
||||
project: "my_group/my_project"
|
||||
|
@ -70,7 +70,7 @@ EXAMPLES = '''
|
|||
key: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9w..."
|
||||
|
||||
- name: "Update the above deploy key to add push access"
|
||||
gitlab_deploy_key:
|
||||
community.general.gitlab_deploy_key:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ api_token }}"
|
||||
project: "my_group/my_project"
|
||||
|
@ -79,7 +79,7 @@ EXAMPLES = '''
|
|||
can_push: yes
|
||||
|
||||
- name: "Remove the previous deploy key from the project"
|
||||
gitlab_deploy_key:
|
||||
community.general.gitlab_deploy_key:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ api_token }}"
|
||||
project: "my_group/my_project"
|
||||
|
|
|
@ -65,7 +65,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: "Delete GitLab Group"
|
||||
gitlab_group:
|
||||
community.general.gitlab_group:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
validate_certs: False
|
||||
|
@ -73,7 +73,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
|
||||
- name: "Create GitLab Group"
|
||||
gitlab_group:
|
||||
community.general.gitlab_group:
|
||||
api_url: https://gitlab.example.com/
|
||||
validate_certs: True
|
||||
api_username: dj-wasabi
|
||||
|
@ -84,7 +84,7 @@ EXAMPLES = '''
|
|||
|
||||
# The group will by created at https://gitlab.dj-wasabi.local/super_parent/parent/my_first_group
|
||||
- name: "Create GitLab SubGroup"
|
||||
gitlab_group:
|
||||
community.general.gitlab_group:
|
||||
api_url: https://gitlab.example.com/
|
||||
validate_certs: True
|
||||
api_username: dj-wasabi
|
||||
|
|
|
@ -110,7 +110,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: "Adding a project hook"
|
||||
gitlab_hook:
|
||||
community.general.gitlab_hook:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
project: "my_group/my_project"
|
||||
|
@ -122,7 +122,7 @@ EXAMPLES = '''
|
|||
token: "my-super-secret-token-that-my-ci-server-will-check"
|
||||
|
||||
- name: "Delete the previous hook"
|
||||
gitlab_hook:
|
||||
community.general.gitlab_hook:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
project: "my_group/my_project"
|
||||
|
@ -130,7 +130,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
|
||||
- name: "Delete a hook by numeric project id"
|
||||
gitlab_hook:
|
||||
community.general.gitlab_hook:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
project: 10
|
||||
|
|
|
@ -99,7 +99,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Delete GitLab Project
|
||||
gitlab_project:
|
||||
community.general.gitlab_project:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
validate_certs: False
|
||||
|
@ -108,7 +108,7 @@ EXAMPLES = '''
|
|||
delegate_to: localhost
|
||||
|
||||
- name: Create GitLab Project in group Ansible
|
||||
gitlab_project:
|
||||
community.general.gitlab_project:
|
||||
api_url: https://gitlab.example.com/
|
||||
validate_certs: True
|
||||
api_username: dj-wasabi
|
||||
|
|
|
@ -63,7 +63,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Set or update some CI/CD variables
|
||||
gitlab_project_variable:
|
||||
community.general.gitlab_project_variable:
|
||||
api_url: https://gitlab.com
|
||||
api_token: secret_access_token
|
||||
project: markuman/dotfiles
|
||||
|
@ -73,7 +73,7 @@ EXAMPLES = '''
|
|||
SECRET_ACCESS_KEY: 321cba
|
||||
|
||||
- name: Set or update some CI/CD variables
|
||||
gitlab_project_variable:
|
||||
community.general.gitlab_project_variable:
|
||||
api_url: https://gitlab.com
|
||||
api_token: secret_access_token
|
||||
project: markuman/dotfiles
|
||||
|
@ -87,7 +87,7 @@ EXAMPLES = '''
|
|||
variable_type: env_var
|
||||
|
||||
- name: Delete one variable
|
||||
gitlab_project_variable:
|
||||
community.general.gitlab_project_variable:
|
||||
api_url: https://gitlab.com
|
||||
api_token: secret_access_token
|
||||
project: markuman/dotfiles
|
||||
|
|
|
@ -98,7 +98,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: "Register runner"
|
||||
gitlab_runner:
|
||||
community.general.gitlab_runner:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
registration_token: 4gfdsg345
|
||||
|
@ -110,7 +110,7 @@ EXAMPLES = '''
|
|||
locked: False
|
||||
|
||||
- name: "Delete runner"
|
||||
gitlab_runner:
|
||||
community.general.gitlab_runner:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
description: Docker Machine t1
|
||||
|
|
|
@ -105,7 +105,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: "Delete GitLab User"
|
||||
gitlab_user:
|
||||
community.general.gitlab_user:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
validate_certs: False
|
||||
|
@ -113,7 +113,7 @@ EXAMPLES = '''
|
|||
state: absent
|
||||
|
||||
- name: "Create GitLab User"
|
||||
gitlab_user:
|
||||
community.general.gitlab_user:
|
||||
api_url: https://gitlab.example.com/
|
||||
validate_certs: True
|
||||
api_username: dj-wasabi
|
||||
|
@ -129,7 +129,7 @@ EXAMPLES = '''
|
|||
access_level: owner
|
||||
|
||||
- name: "Block GitLab User"
|
||||
gitlab_user:
|
||||
community.general.gitlab_user:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
validate_certs: False
|
||||
|
@ -137,7 +137,7 @@ EXAMPLES = '''
|
|||
state: blocked
|
||||
|
||||
- name: "Unblock GitLab User"
|
||||
gitlab_user:
|
||||
community.general.gitlab_user:
|
||||
api_url: https://gitlab.example.com/
|
||||
api_token: "{{ access_token }}"
|
||||
validate_certs: False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue