AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,100 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example" published by Apress, and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

How to install Ansible in Gentoo Linux - Ansible install — Video Tutorial

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

Watch Video

Watch "How to install Ansible in Gentoo Linux - Ansible install" on YouTube

What You'll Learn

Full Tutorial Content

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 devops@gentoo.example.com 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 : mirror-admin@gentoo.org 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 list. MOTD autogenerated by update-rsync-motd on Fri Aug 20 06:43:59 AM UTC 2021 receiving incremental file list timestamp.chk Number of files: 1 (reg: 1) Number of created files: 0 Number of deleted files: 0 Number of regular files transferred: 1 Total file size: 32 bytes Total transferred file size: 32 bytes Literal data: 32 bytes Matched data: 0 bytes File list size: 42 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 104 Total bytes received: 133 sent 104 by

About This Tutorial

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

Topics Covered

Related Video Tutorials