Workshop Exercise 1.7 - Cloning Your Code Repository

Table of Contents

Objective

In this exercise, we are going to clone our git repository so we can begin adding content including playbooks/roles/etc.

This exercise will cover:

Note

This section is a bit ambiguous by design: feel free to use your laptop, SSH into the hypervisor node (if available), use your favorite IDE, sling code on the command line via VIM (which is better than Nano)… you’re free to use whatever you’re comfortable with. VSCode + the Ansible extension is a suggested approach.

Step 1 - Reviewing the Code Repo Location

Your git repository is located in Gitea, which can be accessed via a web interface for viewing, and can be authenticated to via username/password authentication over http.

For a reminder on how to access Gitea, review the Investigating Source Control exercise.

Step 2 - Cloning Your Code Repo

For most, simply running git clone into a directory of your choosing will suffice. If you’re using an IDE/etc, feel free to modify the process to fit your needs.

Note:

Since Gitea is running OpenShift with just the web service exposed, use https when cloning your code repo.


Navigation

Previous Exercise Next Exercise

Click here to return to the Workshop Homepage