Skip to content

Instantly share code, notes, and snippets.

@fleas
Created December 12, 2014 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fleas/7eb86bee462219bda892 to your computer and use it in GitHub Desktop.
Save fleas/7eb86bee462219bda892 to your computer and use it in GitHub Desktop.
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