mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-10 15:32:09 -03:30
* project: fix outdated tag and experimental Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove no longer useful noqa 301 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: replace unnamed-task by name[missing] Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix daemon-reload -> daemon_reload Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
26 lines
729 B
YAML
26 lines
729 B
YAML
---
|
|
- hosts: localhost
|
|
become: False
|
|
gather_facts: False
|
|
|
|
tasks:
|
|
- name: Provision a set of instances
|
|
amazon.aws.ec2_instance:
|
|
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 no-relative-paths - CI inventory templates are not in role_path
|
|
dest: "{{ inventory_path }}"
|
|
mode: 0644
|