Skip to content

Commit 0ce3ed5

Browse files
committed
add oci yum region var
1 parent cba65ef commit 0ce3ed5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ol/create_instance.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,14 @@
295295
- name: Configure instance
296296
ansible.builtin.include_tasks: "host_setup.yml"
297297

298+
- name: Change OCI YUM region
299+
ansible.builtin.copy:
300+
content: "{{ oci_yum_region }}"
301+
dest: /etc/yum/vars/ociregion
302+
mode: '0644'
303+
become: true
304+
when: oci_yum_region | length > 0
305+
298306
- name: Configure passwordless SSH
299307
ansible.builtin.include_tasks: "passwordless_setup.yml"
300308
when: passwordless_ssh

ol/default_vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ cleanup_tmp: no
4343

4444
update_all: false
4545
passwordless_ssh: false
46+
#oci_yum_region: uk-london-1
4647
use_podman: false
4748
use_haproxy: false
4849
use_nginx: false

0 commit comments

Comments
 (0)