How to install Ansible in openSUSE Leap?
Today we're going to talk about the easier way to install and maintain Ansible inside openSUSE 15 using the distribution repository.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
How to install Ansible in openSUSE Leap 15
- use repository openSUSE Leap Update
Today we're talking about How to install Ansible in openSUSE Leap 15.
The easier way to install and maintain Ansible inside openSUSE Leap version 15 is using the Leap Update repository maintained by SUSE.
## Playbook
Are you ready to make your hands dirty?
Let's jump in a quick live Playbook of how to install the latest version of Ansible in openSUSE.
code
- Install-Ansible-openSUSE-Leap15.sh
``bash
#!/bin/bash
sudo zypper refresh
sudo zypper install ansible
sudo zypper info ansible
ansible --version
`
execution
``bash
$ ssh [email protected]
Last login: Thu Nov 18 19:05:28 2021 from 192.168.0.102
Have a lot of fun...
devops@suse:~> cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.3"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.3"
PRETTY_NAME="openSUSE Leap 15.3"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.3"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
devops@suse:~> sudo su
suse:/home/devops # zypper refresh
Repository 'Update repository of openSUSE Backports' is up to date.
Repository 'Non-OSS Repository' is up to date.
Repository 'Main Repository' is up to date.
Repository 'Update repository with updates from SUSE Linux Enterprise 15' is up to date.
Repository 'Main Update Repository' is up to date.
Repository 'Update Repository (Non-Oss)' is up to date.
All repositories have been refreshed.
suse:/home/devops # zypper info ansible
Loading repository data...
Reading installed packages...
Information for package ansible:
--------------------------------
Repository : Update repository with updates from SUSE Linux Enterprise 15
Name : ansible
Version : 2.9.21-1.7.1
Arch : noarch
Vendor : SUSE LLC <https://www.suse.com/>
Installed Size : 96.1 MiB
Installed : No
Status : not installed
Source package : ansible-2.9.21-1.7.1.src
Summary : SSH-based configuration management, deployment, and task execution system
Description :
Ansible is a radically simple model-driven configuration management, multi-node
deployment, and remote task execution system. Ansible works over SSH and does
not req