blob: ce8515e17e2569bb231d5c5850ab7c897b8129a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# multi ec2 inventory configs
cache_max_age: {{ oo_inventory_cache_max_age }}
cache_location: {{ oo_inventory_cache_location | default('~/.ansible/tmp/multi_ec2_inventory.cache') }}
accounts:
{% for account in oo_inventory_accounts %}
- name: {{ account.name }}
provider: {{ account.provider }}
provider_config:
{% for section, items in account.provider_config.items() %}
{{ section }}:
{% for property, value in items.items() %}
{{ property }}: {{ value }}
{% endfor %}
{% endfor %}
env_vars:
AWS_ACCESS_KEY_ID: {{ account.env_vars.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: {{ account.env_vars.AWS_SECRET_ACCESS_KEY }}
{% if account.all_group is defined and account.extra_vars is defined%}
all_group: {{ account.all_group }}
extra_vars:
{% for property, value in account.extra_vars.items() %}
{{ property }}: {{ value }}
{% endfor %}
{% endif %}
{% endfor %}
|