Fix zypper/SUSE invocations
This commit is contained in:
parent
be0a6e32e9
commit
40cf9c615b
|
@ -9,7 +9,13 @@
|
||||||
- name: Update index files
|
- name: Update index files
|
||||||
package:
|
package:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
# when: ansible_pkg_mgr not in []
|
when: ansible_pkg_mgr not in ["zypper"]
|
||||||
|
|
||||||
|
- name: Update index files
|
||||||
|
package:
|
||||||
|
name: zypper
|
||||||
|
update_cache: true
|
||||||
|
when: ansible_pkg_mgr in ["zypper"]
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
@ -30,9 +36,15 @@
|
||||||
upgrade: yes
|
upgrade: yes
|
||||||
when: ansible_pkg_mgr in ["apk", "pacman", "xbps"]
|
when: ansible_pkg_mgr in ["apk", "pacman", "xbps"]
|
||||||
|
|
||||||
- name: Others -- Upgrade all packages
|
- name: RedHat/Void -- Upgrade all packages
|
||||||
package:
|
package:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
when: ansible_pkg_mgr not in ["apk", "apt", "pacman", "xbps"]
|
when: ansible_pkg_mgr in ["dnf", "xbps", "yum"]
|
||||||
|
|
||||||
|
- name: SUSE -- Upgrade all packages
|
||||||
|
package:
|
||||||
|
name: "*"
|
||||||
|
state: dist-upgrade
|
||||||
|
when: ansible_pkg_mgr in ["zypper"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue