How to do it...

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:

  1. Go to the PROJECTS tab from the top navigation bar. A Demo Project has already been created for our convenience.
  2. Here, we need to click on the +ADD button. This will open a form for adding a new project.
  3. 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.
  1. 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. ...

Get Ansible 2 Cloud Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.