mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
commit
ce2b18174e
32 changed files with 398 additions and 179 deletions
|
@ -63,6 +63,7 @@
|
|||
- name: verify apt module outputs
|
||||
assert:
|
||||
that:
|
||||
- "'invocation' in apt_result"
|
||||
- "'changed' in apt_result"
|
||||
- "'stderr' in apt_result"
|
||||
- "'stdout' in apt_result"
|
||||
|
|
|
@ -155,17 +155,15 @@
|
|||
that:
|
||||
- complex_param == "this is a param in a complex arg with double quotes"
|
||||
|
||||
#- name: test variable module name
|
||||
# action: "{{ variable_module_name }} msg='this should be debugged'"
|
||||
# register: result
|
||||
#
|
||||
#- debug: var=result
|
||||
- name: test variable module name
|
||||
action: "{{ variable_module_name }} msg='this should be debugged'"
|
||||
register: result
|
||||
|
||||
#- name: assert the task with variable module name ran
|
||||
# assert:
|
||||
# that:
|
||||
# - result.invocation.module_name == "debug"
|
||||
# - result.msg == "this should be debugged"
|
||||
- name: assert the task with variable module name ran
|
||||
assert:
|
||||
that:
|
||||
- result.invocation.module_name == "debug"
|
||||
- result.msg == "this should be debugged"
|
||||
|
||||
- name: test conditional includes
|
||||
include: test_include_conditional.yml
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
- name: verify yum module outputs
|
||||
assert:
|
||||
that:
|
||||
- "'invocation' in yum_result"
|
||||
- "'changed' in yum_result"
|
||||
- "'msg' in yum_result"
|
||||
- "'rc' in yum_result"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue