mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Allow git repo queries without a clone when update=no
This commit also makes the dest parameter optional, unless update=yes (the default), since it is not required for queries without an update. Fixes #8630
This commit is contained in:
parent
b7a74e216f
commit
28f6a18ef6
2 changed files with 38 additions and 17 deletions
|
@ -134,3 +134,16 @@
|
|||
that:
|
||||
- 'git_result.changed'
|
||||
when: not git_result|skipped
|
||||
|
||||
# Test a non-updating repo query with no destination specified
|
||||
|
||||
- name: get info on a repo without updating and with no destination specified
|
||||
git:
|
||||
repo: '{{ repo_format1 }}'
|
||||
update: no
|
||||
accept_hostkey: yes
|
||||
register: git_result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'git_result.changed'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue