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

Loading…
Cancel
Save