Skip to content

Commit

Permalink
Fix molecule tests for EL7 (#636)
Browse files Browse the repository at this point in the history
* Fix molecule tests for EL7

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>

* Apply suggestions from code review

Co-authored-by: schurzi <Martin.Schurz@t-systems.com>

* try to fix tests in centos 7

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>

* try to fix tests in centos 7

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>

---------

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
Co-authored-by: dev-sec CI <hello@dev-sec.io>
Co-authored-by: schurzi <Martin.Schurz@t-systems.com>
  • Loading branch information
3 people committed Feb 14, 2023
1 parent 0cd3b0d commit 988e532
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions molecule/mysql_hardening/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
- ansible_distribution != "Ubuntu"
- ansible_distribution_major_version|int < 20

- name: Install required MySQL Python libraries on RHEL
yum:
name: "{% if 'python3' in ansible_python_interpreter|default('') %}python36-PyMySQL{% else %}python2-PyMySQL{% endif %}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version == "7"

- include_role:
name: dev-sec.mysql

Expand Down

0 comments on commit 988e532

Please sign in to comment.