Skip to content

Commit 38240b9

Browse files
Merge pull request #39 from thedatabaseme/develop
Fixed #38: Molecule tests now run again by disabling SELinux check when running molecule
2 parents 999f7cc + 5f7d2e5 commit 38240b9

File tree

8 files changed

+11
-2
lines changed

8 files changed

+11
-2
lines changed

Changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Changelog of Pythia:
33
Version 2.3.5
44
- New Feature #34: using the shell command with sqlplus has been replaced by the oracle_sql
55
module
6+
- Fixed #38: Molecule tests now run again by disabling SELinux check when running molecule
7+
and updating the meta/main.yml with the needed Ansible Galaxy info.
68

79
Version 2.3.0
810
- New Feature #25: You can now specify a list of instance parameters which will get set

roles/pythia/meta/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
galaxy_info:
2-
author: Philip Haberkern - thedatabaseme
2+
author: thedatabaseme
33
description: Pythia is a Role for ansible that helps you to automate Oracle Database Installation, Configuration and Patching tasks.
4+
role_name: pythia
45
company:
56

67
# If the issue tracker for your role is not on github, uncomment the

roles/pythia/molecule/default/converge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
runinstaller_parameters: " -ignoreInternalDriverError"
1010
install_patch: "33239276"
1111
emexpress: NONE
12+
molecule_run: true
1213

1314
roles:
1415
- pythia

roles/pythia/molecule/install_db/converge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
oracle_sid: ORA21
88
sga_max_size: 2
99
emexpress: NONE
10+
molecule_run: true
1011

1112
roles:
1213
- pythia

roles/pythia/molecule/install_patch/converge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
vars:
66
oracle_version: 21EE
77
install_patch: 33239276
8+
molecule_run: true
89

910
roles:
1011
- pythia

roles/pythia/molecule/install_rdbms/converge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
oracle_sid: ORA21
88
sga_max_size: 2
99
runinstaller_parameters: " -ignoreInternalDriverError"
10+
molecule_run: true
1011

1112
roles:
1213
- pythia

roles/pythia/molecule/install_rdbms_db_patch/converge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
runinstaller_parameters: " -ignoreInternalDriverError"
1010
install_patch: "33239276"
1111
emexpress: NONE
12+
molecule_run: true
1213

1314
roles:
1415
- pythia

roles/pythia/tasks/prerequisites.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@
459459
changed_when: false
460460
register: check_selinux_configuration
461461
become: true
462+
when: (not molecule_run | bool | default(false))
462463
tags:
463464
- autostart
464465
- db
@@ -487,7 +488,7 @@
487488
state: "{{ selinux_desired_state }}"
488489
register: selinux_configuration_change
489490
become: true
490-
when: '("SELinux state changed" in check_selinux_configuration.msg)'
491+
when: '((not molecule_run | bool | default(false)) and ("SELinux state changed" in check_selinux_configuration.msg))'
491492
tags:
492493
- autostart
493494
- db

0 commit comments

Comments
 (0)