k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
676 B
24 lines
676 B
---
|
|
- hosts: localhost
|
|
become: False
|
|
gather_facts: False
|
|
|
|
tasks:
|
|
- name: Provision a set of instances
|
|
ec2:
|
|
key_name: "{{ aws.key_name }}"
|
|
aws_access_key: "{{ aws.access_key }}"
|
|
aws_secret_key: "{{ aws.secret_key }}"
|
|
region: "{{ aws.region }}"
|
|
group_id: "{{ aws.group }}"
|
|
instance_type: "{{ aws.instance_type }}"
|
|
image: "{{ aws.ami_id }}"
|
|
wait: true
|
|
count: "{{ aws.count }}"
|
|
instance_tags: "{{ aws.tags }}"
|
|
register: ec2
|
|
|
|
- name: Template the inventory
|
|
template:
|
|
src: ../templates/inventory-aws.j2 # noqa 404 CI inventory templates are not in role_path
|
|
dest: "{{ inventory_path }}"
|