mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00: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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user