Ansible Yum Module Tutorial - Complete Beginner's Guide



The Ansible Yum Module allows you to manage packages on remote hosts that have the Yum package manager installed. The Yum package manager is the default on Red Hat-based operating systems such as CentOS and Red Hat Enterprise Linux. I’ve split this video into sections to make it easier to navigate:

– 0:01 — Install a Package
– 4:33 — Install Multiple Packages
– 5:57 — Install a Specific Version
– 7:18 — Update a Package
– 8:29 — Remove a Package

ℹ️ READ THE IN-DEPTH TUTORIAL HERE == http://bit.ly/2CPGU9p

SETUP/EDITOR/IDE

✅ Visual Studio Code (https://code.visualstudio.com/)
✅ Ansible extension by Microsoft (http://bit.ly/2SdnqoK).
✅ SEE HOW I SET UP ANSIBLE == https://youtu.be/bUac43G20JQ

Thanks for watching and hope it’s entertaining/useful for you! Hit me up in the comments if you have any questions or feedback 💪.

Related & Channel
▶️ http://bit.ly/2VWid3D == Playlist of all Ansible videos
⭐️ http://bit.ly/2HavqCu == Subscribe to our YouTube Channel

Our Site & Socials
🌐 http://bit.ly/2shtKwZ == TopTechSkills.com
🐦 http://bit.ly/2RkgZkk == @TopTechSkills on Twitter
🐦 http://bit.ly/2AA19aN == @PercyGrunwald on Twitter
😃 http://bit.ly/2ACQgEW == @TopTechSkills on Facebook
🕹 http://bit.ly/2CWR3ST == @PercyGrunwald on Twitch

source

13 thoughts on “Ansible Yum Module Tutorial – Complete Beginner's Guide”
  1. Is there a way to force the yum module to run yum localinstall? I've been able to circumvent this issue by using rpm -ivh –force inside of the shell module, however this gives annoying warnings. I can tell the playbook was failing earlier because instead of trying to install the local rpms, yum was trying to find the packages through repos where they won't be found.

  2. Sorry, user test is not allowed to execute '/usr/bin/whoami' as root on server
    Any pointers on how to avoid this error

  3. I have to validate group of packages are installed or not and how to get output of pkgs which are not installed

  4. OK nice, I have a problem, when I try to install a package my playbook freezes waiting for my YES or NO! I think there is something wrong cause some packages are asking for dependencies and the yum module is not doing the work, the playbook can not proceed, what do I need to do? My remote managed machine is looking for packages in my local remote repository.

  5. I would like to setup a condition :
    1. my playbook checks if the pkg is installed or not

    2. if its installed it wont bother to execute rest of playbook for pkg installation
    3. if its not installed then it will proceed with the playbook execution

    how can i do that?
    ## above video was helpful though:)

  6. Excellent video, thanks! I learned how to do my first Ansible install, upgrade, and remove of packages. Just one thing for other readers……… Using AWS AMI Linux instances and the 'Removal' process: Your technique of swapping 'update_cache' for 'autoremove' didn't work for me. I just deleted the 'update_cache' altogether and it worked perfectly.

  7. ​ Percy Grunwald from TopTechSkills You had a video before about the problems with using the package module. I can't find it. Do you still feel that way? If so, can you send me a link to the video.

  8. Thank you so much for the video. Question. Is there a way to install multiple development tools at the same time without having a dozen module lines? I ask because I need to install clamav and it requires a few tools before install (openssl openssl-devel libcurl-devel zlib-devel libpng-devel libxml2-devel json-c-devel bzip2-devel pcre2-devel ncurses-devel)

Leave a Reply

Your email address will not be published.

Captcha loading...