Skip to content

Commit 1e4f977

Browse files
committed
fix bv attach
1 parent d076675 commit 1e4f977

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ol/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@
144144
display_name: "bv-ocfs2"
145145
size_in_gbs: "{{ block_volume_size_in_gbs }}"
146146
key_by: [compartment_id, display_name]
147-
register: result
147+
register: create_bv
148148
retries: 10
149149
delay: 30
150-
until: result is not failed
150+
until: create_bv is not failed
151151

152152
- name: Set the block volume id
153153
ansible.builtin.set_fact:
154-
volume_id: "{{ result.volume.id }}"
154+
volume_id: "{{ create_bv.volume.id }}"
155155

156156
- name: Attach the block volume
157157
oracle.oci.oci_compute_volume_attachment:
@@ -164,9 +164,10 @@
164164
is_agent_auto_iscsi_login_enabled: true
165165
is_read_only: false
166166
is_shareable: true
167+
register: attach_bv
167168
retries: 10
168169
delay: 30
169-
until: result is not failed
170+
until: attach_bv is not failed
170171

171172

172173
- name: Print the public and private ip of the newly created instance

0 commit comments

Comments
 (0)