Ansible series (8) zypper Module

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.