Skip to content

Commit

Permalink
mysql_hardening: Use Python 3 as Ansible interpreter (dev-sec#527)
Browse files Browse the repository at this point in the history
Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>
  • Loading branch information
addianto committed Apr 29, 2022
1 parent 594ce52 commit c5079d0
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 @@ -8,6 +8,13 @@
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
tasks:
- name: Use Python 3 on Debian 11
set_fact:
ansible_python_interpreter: /usr/bin/python3
when:
- ansible_distribution == 'Debian'
- ansible_distribution_major_version|int >= 11

- name: Run the equivalent of "apt-get update && apt-get upgrade"
apt:
name: "*"
Expand Down

0 comments on commit c5079d0

Please sign in to comment.