--- - hosts: zypper tasks: - name: "Python2: Zypper module dependency" command: zypper -n install python-xml args: creates: /usr/lib*/python2.*/xml/dom/minidom.py when: ansible_python.version.major == "2" - name: Install NTP zypper: name=ntp state=latest - name: Copy ntp.conf copy: src=ntp.conf dest=/etc/ntp.conf backup=yes - name: Restart NTP service: name=ntpd state=restarted - name: Enable NTP service: name=ntpd enabled=yes state=started