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

Luca Berton
4 min readOct 14, 2021

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

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet