Replace references to archived ansible/ansible-examples repository (#83500)

* Replace references to archived ansible/ansible-examples repository

* Update examples to reference ansible repository

* Include HTTPS among SSH references in examples
pull/83511/head
Tiago R. Cunha 5 months ago committed by GitHub
parent a8e4106c47
commit 101f017ef5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -241,57 +241,57 @@ notes:
EXAMPLES = '''
- name: Git checkout
ansible.builtin.git:
repo: 'https://foosball.example.org/path/to/repo.git'
dest: /srv/checkout
repo: 'https://github.com/ansible/ansible.git'
dest: /tmp/checkout
version: release-0.22
- name: Read-write git checkout from github
ansible.builtin.git:
repo: git@github.com:mylogin/hello.git
dest: /home/mylogin/hello
repo: git@github.com:ansible/ansible.git
dest: /tmp/checkout
- name: Just ensuring the repo checkout exists
ansible.builtin.git:
repo: 'https://foosball.example.org/path/to/repo.git'
dest: /srv/checkout
repo: 'https://github.com/ansible/ansible.git'
dest: /tmp/checkout
update: no
- name: Just get information about the repository whether or not it has already been cloned locally
ansible.builtin.git:
repo: 'https://foosball.example.org/path/to/repo.git'
dest: /srv/checkout
repo: git@github.com:ansible/ansible.git
dest: /tmp/checkout
clone: no
update: no
- name: Checkout a github repo and use refspec to fetch all pull requests
ansible.builtin.git:
repo: https://github.com/ansible/ansible-examples.git
dest: /src/ansible-examples
repo: 'https://github.com/ansible/ansible.git'
dest: /tmp/checkout
refspec: '+refs/pull/*:refs/heads/*'
- name: Create git archive from repo
ansible.builtin.git:
repo: https://github.com/ansible/ansible-examples.git
dest: /src/ansible-examples
archive: /tmp/ansible-examples.zip
repo: git@github.com:ansible/ansible.git
dest: /tmp/checkout
archive: /tmp/ansible.zip
- name: Clone a repo with separate git directory
ansible.builtin.git:
repo: https://github.com/ansible/ansible-examples.git
dest: /src/ansible-examples
separate_git_dir: /src/ansible-examples.git
repo: 'https://github.com/ansible/ansible.git'
dest: /tmp/checkout
separate_git_dir: /tmp/repo
- name: Example clone of a single branch
ansible.builtin.git:
repo: https://github.com/ansible/ansible-examples.git
dest: /src/ansible-examples
repo: git@github.com:ansible/ansible.git
dest: /tmp/checkout
single_branch: yes
version: master
- name: Avoid hanging when http(s) password is missing
ansible.builtin.git:
repo: https://github.com/ansible/could-be-a-private-repo
dest: /src/from-private-repo
repo: 'https://github.com/ansible/ansible.git'
dest: /tmp/checkout
environment:
GIT_TERMINAL_PROMPT: 0 # reports "terminal prompts disabled" on missing password
# or GIT_ASKPASS: /bin/true # for git before version 2.3.0, reports "Authentication failed" on missing password

Loading…
Cancel
Save