1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Rob Cutmore 2016-09-20 10:07:27 -04:00 committed by Toshio Kuratomi
parent 547cea556f
commit 2716fe4362

View file

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