Unquote urls in YAML - source_control (#5795)

pull/18777/head
Fabio Alessandro Locati 8 years ago committed by Matt Clay
parent 013be6fa1c
commit 18d022d808

@ -195,32 +195,32 @@ notes:
EXAMPLES = ''' EXAMPLES = '''
# Example git checkout from Ansible Playbooks # Example git checkout from Ansible Playbooks
- git: - git:
repo: 'git://foosball.example.org/path/to/repo.git' repo: git://foosball.example.org/path/to/repo.git
dest: /srv/checkout dest: /srv/checkout
version: release-0.22 version: release-0.22
# Example read-write git checkout from github # Example read-write git checkout from github
- git: - git:
repo: 'ssh://git@github.com/mylogin/hello.git' repo: ssh://git@github.com/mylogin/hello.git
dest: /home/mylogin/hello dest: /home/mylogin/hello
# Example just ensuring the repo checkout exists # Example just ensuring the repo checkout exists
- git: - git:
repo: 'git://foosball.example.org/path/to/repo.git' repo: git://foosball.example.org/path/to/repo.git
dest: /srv/checkout dest: /srv/checkout
update: no update: no
# Example just get information about the repository whether or not it has # Example just get information about the repository whether or not it has
# already been cloned locally. # already been cloned locally.
- git: - git:
repo: 'git://foosball.example.org/path/to/repo.git' repo: git://foosball.example.org/path/to/repo.git
dest: /srv/checkout dest: /srv/checkout
clone: no clone: no
update: no update: no
# Example checkout a github repo and use refspec to fetch all pull requests # Example checkout a github repo and use refspec to fetch all pull requests
- git: - git:
repo: 'https://github.com/ansible/ansible-examples.git' repo: https://github.com/ansible/ansible-examples.git
dest: /src/ansible-examples dest: /src/ansible-examples
refspec: '+refs/pull/*:refs/heads/*' refspec: '+refs/pull/*:refs/heads/*'
''' '''

@ -96,7 +96,7 @@ requirements: [ ]
EXAMPLES = ''' EXAMPLES = '''
# Ensure the current working copy is inside the stable branch and deletes untracked files if any. # Ensure the current working copy is inside the stable branch and deletes untracked files if any.
- hg: - hg:
repo: 'https://bitbucket.org/user/repo1' repo: https://bitbucket.org/user/repo1
dest: /home/user/repo1 dest: /home/user/repo1
revision: stable revision: stable
purge: yes purge: yes
@ -104,7 +104,7 @@ EXAMPLES = '''
# Example just get information about the repository whether or not it has # Example just get information about the repository whether or not it has
# already been cloned locally. # already been cloned locally.
- hg: - hg:
repo: 'git://bitbucket.org/user/repo' repo: git://bitbucket.org/user/repo
dest: /srv/checkout dest: /srv/checkout
clone: no clone: no
update: no update: no

@ -105,18 +105,18 @@ options:
EXAMPLES = ''' EXAMPLES = '''
# Checkout subversion repository to specified folder. # Checkout subversion repository to specified folder.
- subversion: - subversion:
repo: 'svn+ssh://an.example.org/path/to/repo' repo: svn+ssh://an.example.org/path/to/repo
dest: /src/checkout dest: /src/checkout
# Export subversion directory to folder # Export subversion directory to folder
- subversion: - subversion:
repo: 'svn+ssh://an.example.org/path/to/repo' repo: svn+ssh://an.example.org/path/to/repo
dest: /src/export dest: /src/export
# Example just get information about the repository whether or not it has # Example just get information about the repository whether or not it has
# already been cloned locally. # already been cloned locally.
- subversion: - subversion:
repo: 'svn+ssh://an.example.org/path/to/repo' repo: svn+ssh://an.example.org/path/to/repo
dest: /srv/checkout dest: /srv/checkout
checkout: no checkout: no
update: no update: no

Loading…
Cancel
Save