Ansible: Inventory, Ad-hoc & Playbook

Your team is moving server setup from manual steps to Ansible. Start with the local machine.

Tasks

  1. Create /home/student/inventory.ini with a [web] group containing localhost ansibleconnection=local.
  2. Ping the web group with an ad-hoc command.
  3. Write site.yml that creates /tmp/webasha-ansible.txt containing managed by ansible, then run it.