mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Multiple fixes for include statements and blocks in general
Fixes #11981 Fixes #11995 Fixes #12039 Fixes #12077
This commit is contained in:
parent
9f9891df2c
commit
601a1cc6d9
6 changed files with 196 additions and 108 deletions
|
@ -31,11 +31,6 @@
|
|||
b: 102
|
||||
c: 103
|
||||
|
||||
# Params specified via k=v values are strings, while those
|
||||
# that come from variables will keep the type they were previously.
|
||||
# Prior to v2.0, facts too priority over include params, however
|
||||
# this is no longer the case.
|
||||
|
||||
- include: included_task1.yml a={{a}} b={{b}} c=103
|
||||
|
||||
- name: verify variable include params
|
||||
|
@ -43,10 +38,10 @@
|
|||
that:
|
||||
- "ca == 101"
|
||||
- "cb == 102"
|
||||
- "cc == '103'"
|
||||
- "cc == 103"
|
||||
|
||||
# Test that strings are not turned into numbers
|
||||
- set_fact:
|
||||
- set_fact:
|
||||
a: "101"
|
||||
b: "102"
|
||||
c: "103"
|
||||
|
@ -54,7 +49,7 @@
|
|||
- include: included_task1.yml a={{a}} b={{b}} c=103
|
||||
|
||||
- name: verify variable include params
|
||||
assert:
|
||||
assert:
|
||||
that:
|
||||
- "ca == '101'"
|
||||
- "cb == '102'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue