aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml
blob: 2a78e82e3bfaf599b3f61a986f018f3c5afe3bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: Create host
  os_server:
    state: present
    name: "{{ host.name }}"
    image: "{{ host.image }}"
    flavor: "{{ host.flavor }}"
    key_name: "{{ host.keypair }}"
    network: "{{ host.network }}"
    security_groups:
      - "{{ host.securitygroup }}"
    auto_ip: "{{ host.auto_ip | default(true) }}"
    boot_from_volume: true
    terminate_volume: true
    volume_size: "{{ host.volume_size | default(10) }}"