File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ Temporary Items
34
34
35
35
# Ansible playbook runtime
36
36
* /buffer /*
37
+ * .ansible /*
37
38
38
39
# VS Code files for those working on multiple tools
39
40
** /.vscode /*
Original file line number Diff line number Diff line change 12
12
oracle.oci.oci_blockstorage_volume :
13
13
compartment_id : " {{ my_compartment_id }}"
14
14
availability_domain : " {{ my_availability_domain }}"
15
- display_name : " blockvolume-{{ item.value.instance_name | default('instance-'~timestamp) }}"
15
+ display_name : " blockvolume-vd {{ block_devices[ansible_loop.index0] }}"
16
16
size_in_gbs : " {{ block_volume_size_in_gbs }}"
17
+ key_by : [compartment_id, display_name]
17
18
register : result
18
19
vars :
19
20
timestamp : " {{ now().strftime('%Y%m%d-%H%M%S') }}"
32
33
volume_id : " {{ volume_id }}"
33
34
compartment_id : " {{ my_compartment_id }}"
34
35
device : " /dev/oracleoci/oraclevd{{ block_devices[ansible_loop.index0] }}"
36
+ display_name : " blockvolume-vd{{ block_devices[ansible_loop.index0] }}"
35
37
is_read_only : false
36
38
is_shareable : false
39
+ key_by : [compartment_id, display_name]
37
40
retries : 10
38
41
delay : 30
39
42
until : result is not failed
Original file line number Diff line number Diff line change 83
83
ansible.builtin.include_tasks : " block.yml"
84
84
loop : " {{ query('sequence', 'start=1 end=' + (block_count) | string) }}"
85
85
loop_control :
86
+ loop_var : blk_devices
86
87
extended : true
87
88
vars :
88
89
block_devices :
91
92
- d
92
93
- e
93
94
- f
95
+ - g
96
+ - h
97
+ - i
94
98
95
99
- name : Print the public and private ip of the newly created instance
96
100
ansible.builtin.debug :
You can’t perform that action at this time.
0 commit comments