AWX fetching aws service information

,

Hey,

  1. I configured my AWX server on one of my aws account.
  2. I have multiple AWS accounts.
  3. I need to fetch some of my aws account hosted zone lists from AWX server.
  4. Dynamic Inventory and AWS communication working with assume role. Ansible Tower AWS account allowed to use assume role and fetching all the inventory list.
  5. 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: PRINT OUT RECORD SETS
      debug:
      var: record_sets
      I used “profile” when running from ansible jumphost server.