AWX 1.0.6.5 Docker image
I’ve got an AWS dynamic inventory established. Each host shows all of the “ec2_” variables listed on this page if you look at its page in the UI (Inventories > Hosts > > Details > Variables listing). Do I need to write a specific “include” statement in my playbook in order to access these variables?
This code:
`
- name: Get our instance info
ec2_instance_facts:
filters:
instance-id: “{{ ec2_id }}”
register: instance_info
`
Results in this error:
ERROR! Syntax Error while loading YAML. did not find expected key The error appears to have been in '/var/lib/awx/projects/_13__snapshot_testing/standalone/snapshot.yml': line 21, column 8, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: instance-id: "" register: instance_info ^ here
Which would seem to suggest that the variable isn’t getting set.