diff --git a/raw_install_python.yml b/raw_install_python.yml index 8d36c9dac..7b4b86ffd 100644 --- a/raw_install_python.yml +++ b/raw_install_python.yml @@ -55,4 +55,15 @@ register: result until: result is succeeded when: stat_zypper.rc == 0 - when: not True in (systempython.results | selectattr('stat', 'defined') | map(attribute='stat.exists') | list | unique) \ No newline at end of file + when: not True in (systempython.results | selectattr('stat', 'defined') | map(attribute='stat.exists') | list | unique) + +- name: install python-xml for opensuse only if python2 is installed already + raw: zypper -n install python-xml + register: result + until: result is succeeded + with_items: "{{ systempython.results }}" + when: + - stat_zypper.rc is defined + - stat_zypper.rc == 0 + - item.stat.exists | bool + - item.stat.path == '/usr/bin/python'