Skip to content

Commit 40075e8

Browse files
port
1 parent 8f2fac3 commit 40075e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

etc/kayobe/ansible/deploy-baremetal-instance.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
- '"HTTP 404" not in node_show.stderr'
5959
- '"available" in node_show_json.provision_state'
6060
block:
61-
- name: Configure network for baremetal instance
61+
- name: Create port
6262
openstack.cloud.port:
6363
state: present
6464
name: "{{ inventory_hostname }}"
@@ -68,14 +68,14 @@
6868
- ip_address: "{{ ansible_host }}"
6969
vnic_type: baremetal
7070
delegate_to: localhost
71-
register: port
71+
register: osport
7272

7373
- name: Deploy hypervisor image
7474
openstack.cloud.server:
7575
state: present
7676
name: "{{ inventory_hostname }}"
7777
nics:
78-
- port-id: "{{ port.port.id }}"
78+
- port-id: "{{ osport.port.id }}"
7979
auth: "{{ auth }}"
8080
availability_zone: "{{ availability_zone }}::{{ node_show_json.uuid }}"
8181
image: "{{ hypervisor_image }}"

0 commit comments

Comments
 (0)