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:
James Cammarata 2014-09-17 02:01:27 -05:00
commit 28f6a18ef6
2 changed files with 38 additions and 17 deletions

View file

@ -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'