Allow using action/local_action on includes and imports (#37260)

* Prevent using action/local_action on includes and imports. Fixes #28822

* Use ModuleArgsParser to determine action instead of disallowing action/local_action with import/include

* Add to_native

* switch back to block in task_ds, use ModuleArgsParse otherwise

* var should be task_ds

* Add test validating action+include_tasks
This commit is contained in:
Matt Martz 2018-05-04 11:10:50 -05:00 committed by GitHub
parent dddcbb7198
commit 3d5a7d6dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 8 deletions

View file

@ -39,3 +39,6 @@
assert:
that:
- set_in_tasks4
- name: include_tasks + action
action: include_tasks tasks1.yml