Lab 1 - Git Installation & First Steps

Goals

  • first tests with our infrastructure
  • first steps with git

Mandatory

Check the infrastructure

  • Login on srv.<firstname>.lab as ansible user

  • check the ansible version (2.x)

  • try to connect to the other servers via ssh and accept the ssh host keys
    • web1.<firstname>.lab
    • web2.<firstname>.lab
    • db.<firstname>.lab

Git Installation

  • Connect to your srv.<firstname>.lab as ansible user
  • Switch to root
  • Install git via apt-get install <package>

Create a git repo

  • switch back to the ansible user
  • create a local git repo in /home/ansible/training
  • create a file e.g README.md and add it to your git repo
  • make your first git commit

Optional

Checkout a public repository