5/18
Sign inSign up free

1253. Accounts for the New Team

easy 10 XP ~9 minHands-on lab

/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.

Task

Write /home/student/ansible/users.yml and run it, so that:

  1. On 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).
  2. The accounts are created by one task with a loop over team, not one task per person.
  3. On all three servers, the account priya and its home folder are gone.
  4. 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.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

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.