ansible/roles/copr/backend/files/provision/builderpb_nova_aws.yml
2020-04-24 21:34:10 +02:00

42 lines
925 B
YAML

- name: check/create instance
hosts: 127.0.0.1
gather_facts: False
vars_files:
- vars.yml
- nova_cloud_vars.yml
vars:
keypair: buildsys
max_spawn_time: 1100
spawning_vm_user: "fedora"
image_name: "{{ builder_images.x86_64 }}"
tasks:
- name: so far we have only one instance in AWS so it will always be the same address
set_fact: builder_ip="34.254.223.48"
- name: add builder ip to the special group
local_action: add_host hostname="34.254.223.48" groupname=builder_temp_group
- name: provision builder
hosts: builder_temp_group
gather_facts: True
sudo: True
user: fedora
vars_files:
- vars.yml
- nova_cloud_vars.yml
vars:
ansible_python_interpreter: /usr/bin/python3
tasks:
- include: "create_swap_file.yml"
when:
- prepare_base_image is defined
- include: "provision_builder_tasks.yml"
- include: "offloading_hack.yml"