Another option, is to use 'default' filter:
environment:
AWS_ACCESS_KEY_ID: "{{ ars.access_key|default('') }}"
AWS_SECRET_ACCESS_KEY: "{{ ars.secret_key|default('') }}"
AWS_SECURITY_TOKEN: "{{ ars.session_token|default('') }}"
vars:
ars: '{{ assumed_role|default({}).sts_creds|default({}) }}'
--
----------
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CACVha7deU-%2BpMdqj98Evj4V8PGpn_MEQ79PEi6d8%3Dgo4O4_6Bw%40mail.gmail.com.