File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1212 source_details :
1313 image_id : " {{ ol_image_id }}"
1414 source_type : image
15- boot_volume_size_in_gbs : 128
15+ boot_volume_size_in_gbs : " {{ item.value.boot_volume_size_in_gbs | default(50) | int }} "
1616 shape : " {{ instance_shape }}"
1717 shape_config :
1818 ocpus : " {{ instance_ocpus }}"
Original file line number Diff line number Diff line change 292292 - debug_enabled
293293 - inventory_hostname == ansible_play_hosts_all[0]
294294
295+ - name : Grow the root filesystem
296+ ansible.builtin.shell : |
297+ /usr/libexec/oci-growfs -y
298+ when : (boot_volume_size_in_gbs is defined) and (boot_volume_size_in_gbs > 50)
299+
295300 - name : Configure instance
296301 ansible.builtin.include_tasks : " host_setup.yml"
297302
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ compute_instances:
22 1 :
33 instance_name : " ocne"
44 type : " server"
5+ boot_volume_size_in_gbs : 50
56os : " Oracle Linux"
67os_version : " 8"
78instance_shape : " VM.Standard.E4.Flex"
You can’t perform that action at this time.
0 commit comments