Accounts for the New Team
/home/student/ansible/group_vars/web.yml lists the team that needs accounts on the web servers. priya left the company last month, but their account still exists on all three servers.
Write /home/student/ansible/users.yml and run it, so that:
web1 and web2, every person in the team list has an account with the given shell and is a member of the listed group (create the groups devs and ops if they don't exist).team, not one task per person.priya and its home folder are gone.db1 doesn't get the team's accounts.About this machine
Ubuntu 24.04 with no internet access and ansible-core installed. Three managed hosts sit next to it: web1, web2 and db1, separate machines with systemd and Python, reached over ssh as root. Only the ansible.builtin modules are available, and nothing can be downloaded. The grader runs your playbooks and checks the hosts' final state, not the commands you typed.
Part of Ansible from Zero. Next step: Every Run Adds Another Line
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.