RH294 Ch 10: Git, VS Code and ansible-navigator
The team keeps its Ansible code in Git at `http://utility/git/webasha-infra.git` (it already has `ansible.cfg` and an inventory with node1 and node2). Work the way the team does: clone, edit in VS Code, run in the execution environment, commit and push.
Tasks
- Clone http://utility/git/webasha-infra.git into /home/student/webasha-infra and open that folder in VS Code.
- Configure your Git identity for student: a user.name and a user.email.
- In the repository, create ansible-navigator.yml that uses the execution environment image utility.lab.example.com/ee-supported-rhel10:latest, never pulls it, and prints output in stdout mode.
- Add a playbook release.yml that writes /etc/webasha-release with the text WebAsha infra v1 on all hosts of the repository's inventory, and run it with ansible-navigator run release.yml (keep playbook artifacts enabled).
- Commit ansible-navigator.yml and release.yml and push them to the main branch on utility.