diff options
author | Sam Doran <sdoran@ansible.com> | 2016-10-13 09:39:15 -0400 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2016-11-15 15:05:57 -0500 |
commit | c0dadd7535b9988ed4d433a29787b1db6202cfba (patch) | |
tree | 1dfe8ecb10d82d76900aa3ed858914d694b8b0f7 /source_control/git.py | |
parent | 8fdf02d46842e155645bb6b86458e8e92f436189 (diff) | |
download | ansible-modules-core-c0dadd7535b9988ed4d433a29787b1db6202cfba.tar.gz |
Change example syntax on git module
Diffstat (limited to 'source_control/git.py')
-rw-r--r-- | source_control/git.py | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/source_control/git.py b/source_control/git.py index 06965f03..a7cb4ae6 100644 --- a/source_control/git.py +++ b/source_control/git.py @@ -194,22 +194,35 @@ notes: EXAMPLES = ''' # Example git checkout from Ansible Playbooks -- git: repo=git://foosball.example.org/path/to/repo.git - dest=/srv/checkout - version=release-0.22 +- git: + repo: 'git://foosball.example.org/path/to/repo.git' + dest: /srv/checkout + version: release-0.22 # Example read-write git checkout from github -- git: repo=ssh://git@github.com/mylogin/hello.git dest=/home/mylogin/hello +- git: + repo: 'ssh://git@github.com/mylogin/hello.git' + dest: /home/mylogin/hello # Example just ensuring the repo checkout exists -- git: repo=git://foosball.example.org/path/to/repo.git dest=/srv/checkout update=no +- git: + repo: 'git://foosball.example.org/path/to/repo.git' + dest: /srv/checkout + update: no # Example just get information about the repository whether or not it has # already been cloned locally. -- git: repo=git://foosball.example.org/path/to/repo.git dest=/srv/checkout clone=no update=no +- git: + repo: 'git://foosball.example.org/path/to/repo.git' + dest: /srv/checkout + clone: no + update: no # Example checkout a github repo and use refspec to fetch all pull requests -- git: repo=https://github.com/ansible/ansible-examples.git dest=/src/ansible-examples refspec=+refs/pull/*:refs/heads/* +- git: + repo: 'https://github.com/ansible/ansible-examples.git' + dest: /src/ansible-examples + refspec: '+refs/pull/*:refs/heads/*' ''' import os |