Add test for checking pip package in check mode (#17360)

pull/17679/head
Rob Cutmore 8 years ago committed by Toshio Kuratomi
parent 547cea556f
commit 2716fe4362

@ -116,3 +116,19 @@
assert:
that:
- "not url_installed.changed"
# Test pip package in check mode doesn't always report changed.
- name: check for pip package
pip: name=pip virtualenv={{ output_dir }}/pipenv state=present
- name: check for pip package in check_mode
pip: name=pip virtualenv={{ output_dir }}/pipenv state=present
check_mode: True
register: pip_check_mode
- name: make sure pip in check_mode doesn't report changed
assert:
that:
- "not pip_check_mode.changed"

Loading…
Cancel
Save