Lab 1 - Git Installation & First Steps """""""""""""""""""""""""""""""""""""" Goals ===== * first tests with our infrastructure * first steps with git Mandatory ========= Check the infrastructure ------------------------ * Login on ``srv..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..lab`` * ``web2..lab`` * ``db..lab`` Git Installation ---------------- * Connect to your ``srv..lab`` as ``ansible`` user * Switch to ``root`` * Install ``git`` via ``apt-get install `` 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 ---------------------------- * switch into the ``/tmp`` directory * clone the git remote repo (https://github.com/pstauffer/pstauffer.github.io.git) * change the ``README.md`` file * look at the differences