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.