mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Native YAML - source_control/gitlab_user (#19053)
This commit is contained in:
parent
ba22514d47
commit
2b47246e94
1 changed files with 22 additions and 20 deletions
|
@ -110,27 +110,29 @@ options:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: "Delete Gitlab User"
|
||||
local_action: gitlab_user
|
||||
server_url="http://gitlab.dj-wasabi.local"
|
||||
validate_certs=false
|
||||
login_token="WnUzDsxjy8230-Dy_k"
|
||||
username=myusername
|
||||
state=absent
|
||||
- name: Delete Gitlab User
|
||||
gitlab_user:
|
||||
server_url: http://gitlab.example.com
|
||||
validate_certs: False
|
||||
login_token: WnUzDsxjy8230-Dy_k
|
||||
username: myusername
|
||||
state: absent
|
||||
delegate_to: localhost
|
||||
|
||||
- name: "Create Gitlab User"
|
||||
local_action: gitlab_user
|
||||
server_url="https://gitlab.dj-wasabi.local"
|
||||
validate_certs=true
|
||||
login_user=dj-wasabi
|
||||
login_password="MySecretPassword"
|
||||
name=My Name
|
||||
username=myusername
|
||||
password=mysecretpassword
|
||||
email=me@home.com
|
||||
sshkey_name=MySSH
|
||||
sshkey_file=ssh-rsa AAAAB3NzaC1yc...
|
||||
state=present
|
||||
- name: Create Gitlab User
|
||||
gitlab_user:
|
||||
server_url: https://gitlab.dj-wasabi.local
|
||||
validate_certs: True
|
||||
login_user: dj-wasabi
|
||||
login_password: MySecretPassword
|
||||
name: My Name
|
||||
username: myusername
|
||||
password: mysecretpassword
|
||||
email: me@example.com
|
||||
sshkey_name: MySSH
|
||||
sshkey_file: ssh-rsa AAAAB3NzaC1yc...
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
'''
|
||||
|
||||
RETURN = '''# '''
|
||||
|
|
Loading…
Reference in a new issue