A Database Password in Plain Text
/home/student/ansible/group_vars/db.yml holds the database password in plain text, and it's about to be pushed to the team's Git repository. The playbook db.yml writes it to /etc/shopdb/credentials on db1.
copper-meadow-17. The plain value must not appear in any file under /home/student/ansible anymore./home/student/.vault_pass, readable only by student, and set the project's ansible.cfg to use it, so ansible-playbook db.yml runs without asking for anything.db.yml still writes the same password to /etc/shopdb/credentials on db1 (owner root, mode 0600).The variable keeps its name, db_password.
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
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.