Ansible series (8) zypper Module
Zypper
Zypper is an rpm package management tool for suse or opensuse. This refers to ansible's zypper module.
Module Parameters
Parameter Name |
Required? |
Default Value |
Option value |
Parameter description |
Disable_gpg_check |
No |
No |
Yes/no |
This parameter is used to check the signature of the GPG package. The default value is check. This parameter will affectStateThe parameter isPresentAndLatestTime |
Disable_recommends |
No |
No |
Yes/no |
Equivalent to the zypper command-No-recommendsParameter. The default value is yes. The recommend software package will not be installed when no. |
Name |
Yes |
|
|
Package name |
State |
No |
Present |
Present/latest/absent |
The final status of the software package. Present indicates that the installation is complete, latest indicates that the latest version is installed, and absent indicates that the installation is removed. |
Case
# Install nmap-zypper: name = nmap state = present # package for installing apache2 and recommends-zypper: name = apache2 state = present disable_recommends = no # Remove nmap-zypper: name = nmap state = absent
Have you learned? The next section describes how to use