File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 99 availability_domain : " {{ my_availability_domain }}"
1010 compartment_id : " {{ my_compartment_id }}"
1111 name : " {{ item.value.instance_name | default('instance-'~timestamp) }}"
12- image_id : " {{ ol_image_id }}"
12+ source_details :
13+ image_id : " {{ ol_image_id }}"
14+ source_type : image
15+ boot_volume_size_in_gbs : " {{ item.value.boot_volume_size_in_gbs | default(50) | int }}"
1316 shape : " {{ instance_shape }}"
1417 shape_config :
1518 ocpus : " {{ instance_ocpus }}"
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ compute_instances:
22 1 :
33 instance_name : " ol-node-01"
44 type : " server"
5+ boot_volume_size_in_gbs : 50
56os : " Oracle Linux"
67os_version : " 8"
78instance_shape : " VM.Standard.E4.Flex"
Original file line number Diff line number Diff line change 3737 - name : Run facts module to get latest information
3838 ansible.builtin.setup :
3939
40+ - name : Grow the root filesystem
41+ ansible.builtin.shell : |
42+ /usr/libexec/oci-growfs -y
43+ become : true
44+ register : result
45+ changed_when : result.rc == 0
46+
4047 - name : Add user account with access to sudo
4148 ansible.builtin.user :
4249 name : " {{ username }}"
You can’t perform that action at this time.
0 commit comments