Potos Playbook
Potos clients use the global playbook to execute the Ansible roles defined in the specs repository.
This repository contains 2 playbooks.
prepare.yml
This playbook does the following:
- It reads what specs repository is defined to use in
/etc/potos/specs_repo.yml
and then clones that repo. - It copies the files from the
templates
to the playbook directory and applies the templating. - It copies the files from the
files
to the playbook directory without applying any templating. - It copies the files from the
vars
directory into the location, so that they are inplaybook.yml
availables ashost_vars
for localhost. - It installs all the collections defined in the
collection.yml
playbook.yml
This playbook does the following:
- It reads the specs definition and defines the client name as
potos_plays_client_full_name
for the long version andpotos_plays_client_short_name
for the short version - It templates the
templates/requirements.yml.j2
from the playbook directory torequirements.yml
for later usage - It installs all the roles defined in
requirements.yml
- It executes all the roles defined in
requirements.yml