From ba22514d479777967da292d12ac542c8c727af2e Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 9 Dec 2016 10:48:33 +0000 Subject: [PATCH] Native YAML - source_control/gitlab_group (#19054) --- .../modules/source_control/gitlab_group.py | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/lib/ansible/modules/source_control/gitlab_group.py b/lib/ansible/modules/source_control/gitlab_group.py index 4c133028474..5684f63e44a 100644 --- a/lib/ansible/modules/source_control/gitlab_group.py +++ b/lib/ansible/modules/source_control/gitlab_group.py @@ -78,23 +78,25 @@ options: ''' EXAMPLES = ''' -- name: "Delete Gitlab Group" - local_action: gitlab_group - server_url="http://gitlab.dj-wasabi.local" - validate_certs=false - login_token="WnUzDsxjy8230-Dy_k" - name=my_first_group - state=absent - -- name: "Create Gitlab Group" - local_action: gitlab_group - server_url="https://gitlab.dj-wasabi.local" - validate_certs=true - login_user=dj-wasabi - login_password="MySecretPassword" - name=my_first_group - path=my_first_group - state=present +- name: Delete Gitlab Group + gitlab_group: + server_url: http://gitlab.example.com + validate_certs: False + login_token: WnUzDsxjy8230-Dy_k + name: my_first_group + state: absent + delegate_to: localhost + +- name: Create Gitlab Group + gitlab_group: + server_url: https://gitlab.example.com + validate_certs: True + login_user: dj-wasabi + login_password: MySecretPassword + name: my_first_group + path: my_first_group + state: present + delegate_to: localhost ''' RETURN = '''# '''