Hands-on task
Ansible Against localhost
Infrastructure as code, local edition. Write a playbook /root/site.yml targeting localhost (local connection) that: creates a user deploy, creates the directory /opt/app owned by deploy with mode 750, and writes the line Managed by Ansible into /etc/motd. Run it until it converges. The playbook must set everything up from scratch on a machine where none of it exists yet, and a second run must change nothing.
- ansible
- iac
- playbook
- idempotency
- modules