Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
    • Security
Google Cloud Platform icon
Labs

Exchange SSH Keys and Run Ansible Playbooks

Ansible allows you to manage the configuration of your hardware and software. Since Ansible is agentless, it can be run from any system that has account credentials on any other system using standard SSH credentials and commands. In this hands-on lab, we will practice running a small playbook on a remote host to install a web server and then test it on our primary server.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 23, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create the SSH Keys for Exchanging between Master and Client Servers
    1. Create a new user called ansible and set the password.
    adduser ansible
    passwd ansible
    
    1. Add the ansible user to the sudoers file and make sure that it can use sudo without a password.
    visudo
    
    1. While logged in as ansible user, create the necessary keys.
    ssh-keygen
    
    1. Exchange the key with the remote client server.
    ssh-copy-id 10.0.1.101
    
    1. Add the client to the Ansible host file.
    vi /etc/ansible/hosts
    
  2. Challenge

    Install the Elinks Package on the Remote Client Server
    1. Run the playbook on the master.
    ansible-playbook /home/cloud_user/playbook.yml
    
    1. Once the software is installed (it should show a success message), log in to the remote system and run the following:
    elinks
    
    1. You should see an About screen on your console.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight