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.ymland then clones that repo. - It copies the files from the
templatesto the playbook directory and applies the templating. - It copies the files from the
filesto the playbook directory without applying any templating. - It copies the files from the
varsdirectory into the location, so that they are inplaybook.ymlavailables ashost_varsfor 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_namefor the long version andpotos_plays_client_short_namefor the short version - It templates the
templates/requirements.yml.j2from the playbook directory torequirements.ymlfor later usage - It installs all the roles defined in
requirements.yml - It executes all the roles defined in
requirements.yml
