mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
adding quiet option to assert (ansible#27124) (#52032)
* adding quiet option to assert (ansible#27124) * adding doc for quiet to assert.py * fixing PEP8 failure * improving example * improving docs * adding changelog fragment * adding . at end of descriptions * removing trailing blank line * adding integration test for assert * fixing CI complaints * disabling gather_facts in quiet.yml test * rerunning to capture skip * cleaning up python 2 vs 3 * following rebase * fixing CI complaints * fixing CI complaints * fixing CI complaints * fixing CI complaints * fixing CI complaints
This commit is contained in:
16
test/integration/targets/assert/quiet.yml
Normal file
16
test/integration/targets/assert/quiet.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
gather_facts: False
|
||||
vars:
|
||||
item_A: yes
|
||||
tasks:
|
||||
- assert:
|
||||
that: "{{ item }} is defined"
|
||||
quiet: True
|
||||
with_items:
|
||||
- item_A
|
||||
- assert:
|
||||
that: "{{ item }} is defined"
|
||||
quiet: False
|
||||
with_items:
|
||||
- item_A
|
||||
Reference in New Issue
Block a user