Skip to content

Commit c029b84

Browse files
committed
update zypper
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
1 parent c41fd51 commit c029b84

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

molecule/mysql_hardening/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
when: ansible_os_family == 'Debian'
3434

3535
- name: Install required python packages on Suse
36-
ansible.builtin.command: zypper -n install python-xml python3-rpm python3-PyMySQL
36+
ansible.builtin.command: zypper -n install python311-rpm python311-PyMySQL
3737
changed_when: false
3838
when: ansible_os_family == 'Suse'
3939

molecule/nginx_hardening/prepare.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
https_proxy: "{{ lookup('env', 'https_proxy') | default(omit) }}"
88
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
99
tasks:
10-
- name: Install required tools on SuSE
11-
community.general.zypper:
12-
name: python-xml
13-
state: present
14-
when: ansible_facts.os_family == 'Suse'
15-
1610
- name: Install required packages
1711
ansible.builtin.package:
1812
name: python3-apt

molecule/os_hardening/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
- name: Install required tools on SuSE
2222
# cannot use zypper module, since it depends on python-xml
23-
ansible.builtin.command: zypper -n install python-xml awk
23+
ansible.builtin.command: zypper -n install awk
2424
changed_when: false
2525
when: ansible_facts.os_family == 'Suse'
2626

molecule/os_hardening_vm/prepare.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@
5050
update_cache: true
5151
when: ansible_os_family == 'Debian'
5252

53-
- name: Install required tools on SuSE
54-
# cannot use zypper module, since it depends on python-xml
55-
ansible.builtin.command: zypper -n install python-xml
56-
changed_when: false
57-
when: ansible_facts.os_family == 'Suse'
58-
5953
- name: Install required tools on fedora
6054
ansible.builtin.dnf:
6155
name:

0 commit comments

Comments
 (0)