Documentation

Ansible Content Types

This topic describes the Ansible content types indexed by the Ansible Galaxy server.

Ansible Roles

A role enables the sharing and reuse of Ansible tasks. It contains Ansible playbook tasks, plus all the supporting files, variables, templates, and handlers needed to run the tasks. A role is a complete unit of automation that can be reused and shared.

In practical terms, a role is a directory structure containing all the files, variables, handlers, Jinja templates, and tasks needed to automate a workflow. When a role is created, the default directory stucture contains the following:

README.md
defaults/
    main.yml
files/
handlers/
    main.yml
meta/
    main.yml
tasks/
    main.yml
templates/
tests/
    inventory
    test.yml
vars/
    main.yml

Using the following keywords, roles can be imported and executed in an Ansible playbook play:

For more on using roles, view the Roles topic at the Ansible docs site

Ansible Playbook Bundles

An Ansible Playbook Bundle (APB) is a lightweight application definition consisting of several named playbooks and a metadata file. An APB defines a short lived container capable of orchestrating the deployment of applications to an OpenShift Origin cluster running the Ansible Service Broker. The short lived container holds a copy of the APB, plus an Ansible runtime environment, and any files required to perform the orchestration, including: playbooks, roles, and dependencies.

For more details regarding the specification, and how to create and use APBs, visit the ansibleplaybookbundle/ansible-playbook-bundle project