Fix parsing of tasks with variable module names

Also adding an integration test for same.
This commit is contained in:
James Cammarata 2014-07-30 14:18:06 -05:00
commit 80df2135e9
3 changed files with 16 additions and 2 deletions

View file

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

View file

@ -0,0 +1,2 @@
---
variable_module_name: debug