Hey,
- I configured my AWX server on one of my aws account.
- I have multiple AWS accounts.
- I need to fetch some of my aws account hosted zone lists from AWX server.
- Dynamic Inventory and AWS communication working with assume role. Ansible Tower AWS account allowed to use assume role and fetching all the inventory list.
- But when I use route53 playbook to list hosted zone it is not working. but the same playbook working from ansible server not from AWX/Tower server. I used “profile” there in playbook, no option to use “I am role arn”.
name: Route53 entry lists
hosts: localhost
gather_facts: true
connection: local
tasks:
-
- name: List all hosted zones
route53_info:
query: hosted_zone
register: record_sets
- name: List all hosted zones
-
- name: PRINT OUT RECORD SETS
debug:
var: record_sets
I used “profile” when running from ansible jumphost server.
- name: PRINT OUT RECORD SETS