Native YAML - source_control/gitlab_project (#19062)

* Native YAML - source_control/gitlab_project

* Use example domain as for RFC2606
pull/18999/head
Fabio Alessandro Locati 8 years ago committed by John R Barker
parent 345e39e1b1
commit 3fa1ddc9db

@ -136,27 +136,29 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: "Delete Gitlab Project" - name: Delete Gitlab Project
local_action: gitlab_project gitlab_project:
server_url="http://gitlab.dj-wasabi.local" server_url: http://gitlab.example.com
validate_certs=false validate_certs: False
login_token="WnUzDsxjy8230-Dy_k" login_token: WnUzDsxjy8230-Dy_k
name=my_first_project name: my_first_project
state=absent state: absent
delegate_to: localhost
- name: "Create Gitlab Project in group Ansible"
local_action: gitlab_project - name: Create Gitlab Project in group Ansible
server_url="https://gitlab.dj-wasabi.local" gitlab_project:
validate_certs=true server_url: https://gitlab.example.com
login_user=dj-wasabi validate_certs: True
login_password="MySecretPassword" login_user: dj-wasabi
name=my_first_project login_password: MySecretPassword
group=ansible name: my_first_project
issues_enabled=false group: ansible
wiki_enabled=true issues_enabled: False
snippets_enabled=true wiki_enabled: True
import_url="http://git.example.com/example/lab.git" snippets_enabled: True
state=present import_url: http://git.example.com/example/lab.git
state: present
delegate_to: localhost
''' '''
RETURN = '''# ''' RETURN = '''# '''

Loading…
Cancel
Save