Loading...

Watch: How to install Ansible in Gentoo Linux - Ansible install

The easier way to install and maintain up-to-date Ansible inside Gentoo Linux using the \"portage\" package manager.

How to install Ansible in Gentoo Linux?

Today we're going to talk about the easier way to install and maintain Ansible inside Gentoo using the default "portage" package manager.

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

How to install Ansible in Gentoo Linux

  • Included in "app-admin/ansible" of Portage

Today we're talking about How to install Ansible in Gentoo.

The good news is that Ansible is included in the "app-admin/ansible" repository so you could install it simply with your usual package manager "emerge" for Portage.

You could expect the latest version of Ansible to maintain up-to-date with Portage.

Links

  • [https://packages.gentoo.org/packages/app-admin/ansible](https://packages.gentoo.org/packages/app-admin/ansible)
  • [https://wiki.gentoo.org/wiki/Ansible](https://wiki.gentoo.org/wiki/Ansible)

## Playbook

Let's jump in a quick live Playbook of how to install the latest version of Ansible using emerge for Portage.

code

  • Install-Ansible-Gentoo.sh

``bash

#!/bin/bash

$ sudo emerge --sync

$ sudo emerge --ask app-admin/ansible

$ sudo emerge -pv app-admin/ansible

`

execution

``bash

$ ssh [email protected]

devops@gentoo ~ $ sudo su

gentoo /home/devops # cat /etc/os-release

NAME=Gentoo

ID=gentoo

PRETTY_NAME="Gentoo/Linux"

ANSI_COLOR="1;32"

HOME_URL="https://www.gentoo.org/"

SUPPORT_URL="https://www.gentoo.org/support/"

BUG_REPORT_URL="https://bugs.gentoo.org/"

gentoo /home/devops # cat /etc/gentoo-release

Gentoo Base System release 2.7

gentoo /home/devops # uname -a

Linux gentoo 5.10.76-gentoo-r1 #1 SMP Tue Nov 23 04:46:43 PST 2021 x86_64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz GenuineIntel GNU/Linux

gentoo /home/devops # emerge --sync

>>> Syncing repository 'gentoo' into '/usr/portage'...

* Using keys from /usr/share/openpgp-keys/gentoo-release.asc

* Refreshing keys via WKD ... [ ok ]

>>> Starting rsync with rsync://81.91.253.252/gentoo-portage...

>>> Checking server timestamp ...

Welcome to starling.gentoo.org / rsync.gentoo.org

Server Address : 81.91.253.252, 2a01:90:200:10::1a

Contact Name : [email protected]

Hardware : 2 x Intel(R) Xeon(R) CPU E5-2470 0 @ 2.30GHz, 3946MB RAM

Sponsor : Qube Managed Services Limited, Zurich, Switzerland, EU

Please note: common gentoo-netiquette says you should not sync more

than once a day. Users who abuse the rsync.gentoo.org rotation

may be added to a temporary ban l

Read the full tutorial: How to install Ansible in Gentoo Linux - Ansible install