diff --git a/ol/block.yml b/ol/block.yml index 0fe9448..2d932cc 100644 --- a/ol/block.yml +++ b/ol/block.yml @@ -31,7 +31,7 @@ type: paravirtualized volume_id: "{{ volume_id }}" compartment_id: "{{ my_compartment_id }}" - device: "{{ block_devices[ansible_loop.index] }}" + device: "/dev/oracleoci/oraclevd{{ block_devices[ansible_loop.index0] }}" is_read_only: false is_shareable: false retries: 10 diff --git a/ol/build.yml b/ol/build.yml index 4bffd3f..f60a86d 100644 --- a/ol/build.yml +++ b/ol/build.yml @@ -78,13 +78,15 @@ - name: Add block storage to an instance ansible.builtin.include_tasks: "block.yml" loop: "{{ query('sequence', 'start=1 end='+(block_count)|string) }}" + loop_control: + extended: true vars: block_devices: - - sdb - - sdc - - sdd - - sde - - sdf + - b + - c + - d + - e + - f - name: Print the public and private ip of the newly created instance ansible.builtin.debug: