Ansible for Beginners - Step by Step - Part 1

Опубликовано: 21 Май 2026
на канале: Linux DevOps Journey
74
3

In this tutorial we will learn how to install Ansible, run Ad hock commands and write a simple Ansible playbook.

Some of the things you will learn in this video:
Learn how to install Ansible
What is Ansible?
Create SSH keys and upload them to servers on our network in order for Ansible to work
Edit Ansible host file to add our servers to Ansible
ansible nameofthehost -m ping - Using ping module to test that Ansible can connect to hosts
ansible all -m shell -a 'df -h' - Use shell module to execute commands
ansible all -m command -a 'df -h' - Use command module to execute commands
Edit host file to group servers in our network by role they perform
sudo ansible-galaxy init roles/nameofdirectory --offline - Create correct structure for Ansible
Create playbook.yml which will install software on all of our machines

Hope you enjoyed it :).