Executing playbooks from a Git repository involves two steps: first, we create a project, and then we create a template to execute the playbooks from the project. Let's start with creating a project:
- Go to the PROJECTS tab from the top navigation bar. A Demo Project has already been created for our convenience.
- Here, we need to click on the +ADD button. This will open a form for adding a new project.
- We will supply a name for our project and set the SCM TYPE to Git. The form will expand so we can enter the details about Git repository.
- We will specify the GitHub URL ending in .git (https://github.com/ansible-cookbook/ansible-tower-example.git). If required, we can add a credential for cloning or pulling the code from GitHub. ...