Chapter 2: Introducing Ansible

Check your Linux foundations

New to Ansible? You need a little Linux first. Use these five checks to find what to practise before your first real lab.

Five useful skills

SkillTry itWhat you should understand
SSHssh devops@servera.lab.example.com hostnameThe command runs on the remote host.
Permissionsls -l /etc/passwdWho owns the file and who can read it.
Privilege escalationsudo idA permitted user can run a command as root.
Servicessystemctl is-active sshdA running service and an enabled service are different states.
Networkingip -br address and getent hosts servera.lab.example.comAn address belongs to an interface; a name resolves to an address.

Run these only after building the lab. Until then, answer the questions below. You can begin the browser activities immediately and return to the VM setup before a hands-on exercise.

Choose your next step

If these ideas are familiar, continue with inventory. If they are new, try each check in the practice lab, explain its output, and repeat without notes. You do not need to memorise every command before learning Ansible.