Lab 1 - Git Installation & First Steps¶
Goals¶
- first tests with our infrastructure
- first steps with git
Mandatory¶
Check the infrastructure¶
Login on
srv.<firstname>.labasansibleusercheck the ansible version (2.x)
- try to connect to the other servers via ssh and accept the ssh host keys
web1.<firstname>.labweb2.<firstname>.labdb.<firstname>.lab
Git Installation¶
- Connect to your
srv.<firstname>.labasansibleuser - Switch to
root - Install
gitviaapt-get install <package>
Create a git repo¶
- switch back to the
ansibleuser - create a local git repo in
/home/ansible/training - create a file e.g
README.mdand add it to your git repo - make your first git commit
Optional¶
Checkout a public repository¶
- switch into the
/tmpdirectory - clone the git remote repo (https://github.com/pstauffer/pstauffer.github.io.git)
- change the
README.mdfile - look at the differences