mono-infrastructure/ansible
2020-12-10 12:26:11 -07:00
..
inventory KVM host initial playbook 2020-12-10 17:38:37 +00:00
playbooks restructure 2020-12-10 12:26:11 -07:00
ansible.cfg restructure 2020-12-10 12:26:11 -07:00
files restructure 2020-12-10 12:26:11 -07:00
handlers restructure 2020-12-10 12:26:11 -07:00
README.md restructure 2020-12-10 12:26:11 -07:00
tasks restructure 2020-12-10 12:26:11 -07:00
templates restructure 2020-12-10 12:26:11 -07:00
vars restructure 2020-12-10 12:26:11 -07:00

Ansible

Ansible playbooks, roles, modules, etc will come here. Documentation to come soon.

Each playbook should have comments or a name descripter that explains what the playbook does or how it is used. If not available, README-... files can be used in place.

Management Node Structure

Loosely copied from the CentOS ansible infrastructure. This structure is represented in this repository.

.
├── ansible.cfg
├── files -> playbooks/files
├── handlers -> playbooks/handlers
├── inventory
├── pkistore
├── playbooks
│   ├── files
│   ├── group_vars
│   ├── host_vars
│   ├── handlers
│   ├── tasks
│   ├── templates
│   ├── vars
│   └── requirements.yml
├── roles
│   ├── <role-name>
├── tasks -> playbooks/tasks
├── templates -> playbooks/templates
└── vars -> playbooks/vars

Structure

What each folder represents

files      -> As the name implies, non-templated files go here
group_vars -> Group Variables go here if they are not fulfilled in an inventory
host_vars  -> Host variables go here
inventory  -> All static inventories go here
roles      -> Custom roles can go here
tasks      -> Common tasks come here
templates  -> Templates go here
vars       -> Global variables that are called with vars_files go here. This

Current Playbook Naming

init-* -> Starting infrastructure playbooks that run solo or import other
          playbooks that start with import-
import -> Playbooks that should be imported from the top level playbooks
role-* -> These playbooks call roles specifically for infrastructure tasks.
          Playbooks that do not call a role should be named init or adhoc based
          on their usage.
adhoc  -> These playbooks are one-off playbooks that can be used on the CLI or
          in AWX