From 222adce751c11e7e78338149e1c6bc8acc171212 Mon Sep 17 00:00:00 2001 From: Thorsten Bruhns Date: Thu, 13 Jul 2023 04:32:42 +0000 Subject: [PATCH] oraswdb_install: enable CV_ASSUME_DISTID=OL7 for Golden-Image on OL/RHEL8 --- changelogs/fragments/assume_os.yml | 3 +++ roles/oraswdb_install/tasks/19.3.0.0.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/assume_os.yml diff --git a/changelogs/fragments/assume_os.yml b/changelogs/fragments/assume_os.yml new file mode 100644 index 000000000..8feddd0ef --- /dev/null +++ b/changelogs/fragments/assume_os.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - "oraswdb_install: enable CV_ASSUME_DISTID=OL7 for Golden-Image on OL/RHEL8 (oravirt#355)" diff --git a/roles/oraswdb_install/tasks/19.3.0.0.yml b/roles/oraswdb_install/tasks/19.3.0.0.yml index 48aade59d..920e3933b 100644 --- a/roles/oraswdb_install/tasks/19.3.0.0.yml +++ b/roles/oraswdb_install/tasks/19.3.0.0.yml @@ -1,6 +1,6 @@ --- - name: install_home_db | Install Oracle Database Server - ansible.builtin.shell: "{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version | int == 8 and db_homes_config[dbh.home]['imagename'] is not defined %}CV_ASSUME_DISTID=OL7 {% endif %}{{ oracle_home_db }}/runInstaller -responseFile {{ oracle_rsp_stage }}/{{ oracle_db_responsefile }} -ignorePrereq -silent -waitforcompletion {% if db_homes_config[dbh.home]['oracle_home_name'] is defined %}ORACLE_HOME_NAME={{ db_homes_config[dbh.home]['oracle_home_name'] }}{% endif %}" + ansible.builtin.shell: "{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version | int == 8 %}CV_ASSUME_DISTID=OL7 {% endif %}{{ oracle_home_db }}/runInstaller -responseFile {{ oracle_rsp_stage }}/{{ oracle_db_responsefile }} -ignorePrereq -silent -waitforcompletion {% if db_homes_config[dbh.home]['oracle_home_name'] is defined %}ORACLE_HOME_NAME={{ db_homes_config[dbh.home]['oracle_home_name'] }}{% endif %}" # noqa command-instead-of-shell no-changed-when become: true become_user: "{{ oracle_user }}"