Relative Content

Tag Archive for ansible

Problem with ansible loop list of strings/numbers

Im somewhat at my google-fu end. I can’t see a reason why i would get “The conditional check ‘XYZ.results[item] is success’ failed. The error was: The ‘failed’ test expects a dictionary”. It works with list a of numbers but not a list of strings?
If i add prints statement and compare the outputs, the only notable differences are different item names.

Problem with ansible loop list of strings/numbers

Im somewhat at my google-fu end. I can’t see a reason why i would get “The conditional check ‘XYZ.results[item] is success’ failed. The error was: The ‘failed’ test expects a dictionary”. It works with list a of numbers but not a list of strings?
If i add prints statement and compare the outputs, the only notable differences are different item names.

Identify if an environment variable is unset

I’m trying to write an ansible playbook to install my application. I’m trying to detect that an environment variable is unset. I know I can use the lookup plugin to find an environment variable like this: lookup('env', 'FOO').

Identify if an environment variable is unset

I’m trying to write an ansible playbook to install my application. I’m trying to detect that an environment variable is unset. I know I can use the lookup plugin to find an environment variable like this: lookup('env', 'FOO').

Identify if an environment variable is unset

I’m trying to write an ansible playbook to install my application. I’m trying to detect that an environment variable is unset. I know I can use the lookup plugin to find an environment variable like this: lookup('env', 'FOO').