mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
Fix molecule tests for EL7 (#636)
* 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>
This commit is contained in:
parent
0cd3b0d02e
commit
988e5322cd
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue