I have been following the Ansible ec2_elb_facts module and tried using the below example but in the debug logs i can see the aws values are completely getting ignored. How can i get this working?
- hosts: localhost
vars:
aws_access_key: accesskey
aws_secret_key: secretkey
ec2_region: us-east1
gather_facts: true
tasks:
# Gather facts about all ELBs
- action:
module: ec2_elb_facts
register: elb_facts
- action:
module: debug
msg: "{{ item.dns_name }}"
with_items: "{{ elb_facts.elbs }}"
Also, in AWX how can i make sure use the encrypted values for awsaccesskey and awssecretkey?