How to install Ansible in SUSE Linux Enterprise Server (SLES) 15 SP3

How to install and maintain up-to-date Ansible inside SUSE Linux Enterprise Server (SLES) 15 SP3 using the SUSE Package Hub repository.

Luca Berton

--

How to install Ansible in SUSE Linux Enterprise SLES Server 15 SP3?

Today we’re going to talk about the easier way to install and maintain Ansible inside SUSE Linux Enterprise (aka SLES) Server 15 SP3 using the Package Hub repository.

I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

How to install Ansible in SLES 15 SP3

  • use SUSE Package Hub repository

Today we’re talking about How to install Ansible in SUSE Linux Enterprise 15 SP 3.

The easier way to install and maintain Ansible inside SUSE Linux Enterprise version 15 SP 3 is using the SUSE Package Hub repository maintained by the SUSE community.

Links

https://packagehub.suse.com/

https://www.suse.com/support/kb/doc/?id=000018564

https://www.suse.com/support/kb/doc/?id=000018789

demo

Install the latest version of ansible in SUSE Linux Enterprise Server 15 SP3.

  • Install-Ansible-SLES-15-SP3.sh
#!/bin/bash
SUSEConnect --status
SUSEConnect --list-extensions
SUSEConnect -p PackageHub/15.3/x86_64
zypper install ansible
zypper info ansible
ansible --version

execution

$ ssh devops@sles.example.com
devops@sles:~> sudo su
sles:/home/devops # cat /etc/os-release
NAME="SLES"
VERSION="15-SP3"
VERSION_ID="15.3"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP3"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp3"
DOCUMENTATION_URL="https://documentation.suse.com/"
sles:/home/devops # hostnamectl
Static hostname: sles.example.com
Transient hostname: sles
Icon name: computer-vm
Chassis: vm
Machine ID: 4a241aac39fa4e75b13748c714c05c47
Boot ID…

--

--

Luca Berton

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