mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Fix parsing of tasks with variable module names
Also adding an integration test for same.
This commit is contained in:
parent
189824dd76
commit
80df2135e9
3 changed files with 16 additions and 2 deletions
|
@ -152,4 +152,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: assert the task with variable module name ran
|
||||
assert:
|
||||
that:
|
||||
- result.invocation.module_name == "debug"
|
||||
- result.msg == "this should be debugged"
|
||||
|
||||
|
|
2
test/integration/roles/test_good_parsing/vars/main.yml
Normal file
2
test/integration/roles/test_good_parsing/vars/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
variable_module_name: debug
|
Loading…
Add table
Add a link
Reference in a new issue