Skip to content

Commit

Permalink
Fix molecule tests for EL7
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-sec CI authored and Sebastian Gumprich committed Feb 13, 2023
1 parent 0cd3b0d commit eb778c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions molecule/mysql_hardening/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
- ansible_distribution != "Ubuntu"
- ansible_distribution_major_version|int < 20

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

- include_role:
name: dev-sec.mysql

Expand Down

0 comments on commit eb778c1

Please sign in to comment.