Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ansible multiple creds/profile play
vars_files:
- .creds_file
tasks:
- name: task1
local_action:
module: ec2
aws_access_key: "{{ profile_key1 }}"
aws_secret_key: "{{ profile_secret1 }}"
...
- name: task2
local_action:
module: ec2
aws_access_key: "{{ profile_key2 }}"
aws_secret_key: "{{ profile_secret2 }}"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.