- name: Find EFS filesystem
delegate_to: localhost
become: no
efs_info:
tags:
Name: "{{ home_dir_mount_tag_name }}"
register: efs_info_res
When run the task fails because the AWS profile is not found.
In AWX I have the credential for AWS with profile attached and that profile works as the inventory also uses this profile (but in AWX that step runs separately).
I have tried setting env variable to the .aws/conf file to see if that would help.
When run outside of AWX the playbook works correctly but the user must auth to AWS prior to running.