From 3fa1ddc9dbcd6abd47611eadb2a385f5141aea99 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 9 Dec 2016 10:44:43 +0000 Subject: [PATCH] Native YAML - source_control/gitlab_project (#19062) * Native YAML - source_control/gitlab_project * Use example domain as for RFC2606 --- .../modules/source_control/gitlab_project.py | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/lib/ansible/modules/source_control/gitlab_project.py b/lib/ansible/modules/source_control/gitlab_project.py index 94852afac86..519ad6bfe73 100644 --- a/lib/ansible/modules/source_control/gitlab_project.py +++ b/lib/ansible/modules/source_control/gitlab_project.py @@ -136,27 +136,29 @@ options: ''' EXAMPLES = ''' -- name: "Delete Gitlab Project" - local_action: gitlab_project - server_url="http://gitlab.dj-wasabi.local" - validate_certs=false - login_token="WnUzDsxjy8230-Dy_k" - name=my_first_project - state=absent - -- name: "Create Gitlab Project in group Ansible" - local_action: gitlab_project - server_url="https://gitlab.dj-wasabi.local" - validate_certs=true - login_user=dj-wasabi - login_password="MySecretPassword" - name=my_first_project - group=ansible - issues_enabled=false - wiki_enabled=true - snippets_enabled=true - import_url="http://git.example.com/example/lab.git" - state=present +- name: Delete Gitlab Project + gitlab_project: + server_url: http://gitlab.example.com + validate_certs: False + login_token: WnUzDsxjy8230-Dy_k + name: my_first_project + state: absent + delegate_to: localhost + +- name: Create Gitlab Project in group Ansible + gitlab_project: + server_url: https://gitlab.example.com + validate_certs: True + login_user: dj-wasabi + login_password: MySecretPassword + name: my_first_project + group: ansible + issues_enabled: False + wiki_enabled: True + snippets_enabled: True + import_url: http://git.example.com/example/lab.git + state: present + delegate_to: localhost ''' RETURN = '''# '''