Skip to content

Commit 81ecce6

Browse files
committed
add key_by and display_name for vol attachment
1 parent 12a06f6 commit 81ecce6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ol/block.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
availability_domain: "{{ my_availability_domain }}"
1515
display_name: "blockvolume-{{ item.value.instance_name | default('instance-'~timestamp) }}"
1616
size_in_gbs: "{{ block_volume_size_in_gbs }}"
17+
key_by: [compartment_id, display_name]
1718
register: result
1819
vars:
1920
timestamp: "{{ now().strftime('%Y%m%d-%H%M%S') }}"
@@ -32,8 +33,10 @@
3233
volume_id: "{{ volume_id }}"
3334
compartment_id: "{{ my_compartment_id }}"
3435
device: "/dev/oracleoci/oraclevd{{ block_devices[ansible_loop.index0] }}"
36+
display_name: "blockvolume-vd{{ block_devices[ansible_loop.index0] }}"
3537
is_read_only: false
3638
is_shareable: false
39+
key_by: [compartment_id, display_name]
3740
retries: 10
3841
delay: 30
3942
until: result is not failed

0 commit comments

Comments
 (0)