From b55fd5f67a0c5c1db98e7772de97e303dc1367f7 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 6 Jul 2016 11:14:42 -0400 Subject: [PATCH] updated set_fact docs with note about typing --- lib/ansible/modules/utilities/logic/set_fact.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/utilities/logic/set_fact.py b/lib/ansible/modules/utilities/logic/set_fact.py index 3dc729d07dc..a7dfc158b44 100644 --- a/lib/ansible/modules/utilities/logic/set_fact.py +++ b/lib/ansible/modules/utilities/logic/set_fact.py @@ -35,10 +35,13 @@ options: required: true default: null version_added: "1.2" +notes: + - "The `var=value` notation can only create strings or booleans. + If you want to create lists/arrays or dictionary/hashes use `var: [val1, val2]`" ''' EXAMPLES = ''' -# Example setting host facts using key=value pairs +# Example setting host facts using key=value pairs, note that this always creates strings or booleans - set_fact: one_fact="something" other_fact="{{ local_var }}" # Example setting host facts using complex arguments