Lab Informations ================ .. important:: Don't forget to archive and copy your git repo on the own notebook at the end of the course WLAN ---- +-------------+-----------+ | SSID | password | +=============+===========+ | confirm-lab | labinabox | +-------------+-----------+ host informations ----------------- +----------+---------+-----------------+ | function | os | hostname / dns | +==========+=========+=================+ | srv | debian9 | srv..lab | +----------+---------+-----------------+ | web1 | debian9 | web1..lab | +----------+---------+-----------------+ | web2 | centos7 | web2..lab | +----------+---------+-----------------+ | db | debian9 | db..lab | +----------+---------+-----------------+ users ----- +----------+----------+ | username | password | +==========+==========+ | root | login | +----------+----------+ | ansible | login | +----------+----------+ sudo ---- The ``ansible`` user can run every command as root without password. You can also switch user to ``root``. .. code-block:: bash # switch to root user sudo su - root ssh setup --------- On all servers are ssh keys deployed for the ``ansible`` and ``root`` user. So you can connect between your servers without a password. .. code-block:: bash # connect from srv to web1 ssh web1..lab .. important:: Please be aware, that ssh host key checking is enabled. So you have to accept the key exchange. Connect to your server ---------------------- For both users is the password **login**. .. code-block:: bash # connect to your server as root user ssh -l root srv..lab # connect to your server as ansible user ssh -l ansible srv..lab Overview -------- .. image:: /../_static/infra.png :class: align-center