Member-only story
Install a package in Suse-like systems — Ansible module zypper
A real-life example of how to install a package in Suse-like systems: SUSE Linux Enterprise Server and openSUSE
How to Install a package with Ansible in Suse-like systems?
I’m going to show you a live demo with some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Ansible Install a package in Suse-like systems
Today we’re talking about the Ansible module `zypper`.
The full name is `community.general.zypper` which means is part of the `Community General Collection` so maintained by the Ansible Community contributors.
It works on Syse-like operating systems and Manages packages on SUSE and openSUSE via the zypper package manager.
It’s similar to the yum or DNF module for RedHat-like operating systems or the apt module for Debian-like operating systems.
Parameters
- name string — name or package specific
- state string — present / absent / latest