Hello,
I am trying to use with_items: from a file but I am getting the following error. I can’t find any documentation to help me with this. I’m hoping someone can help me. The error message and my files are as follows:
Error:
TASK: [cloudwatch_alarms | include_vars ec2-alarms.yml] *********************** ok: [ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com] TASK: [cloudwatch_alarms | debug var=ec2-alarms] ****************************** ok: [ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com] => { “ec2-alarms”: “{{ec2-alarms}}” } TASK: [cloudwatch_alarms | ec2-alarms] **************************************** fatal: [ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com → 127.0.0.1] => One or more undefined variables: ‘str object’ has no attribute ‘comparison’ FATAL: all hosts have already failed – aborting PLAY RECAP ******************************************************************** to retry, use: --limit @/var/lib/awx/cloudwatch-alarms.retry
Main Task: