March 2019
Intermediate to advanced
412 pages
9h 49m
English
To illustrate what a full role structure might look like, here is an example role by the name of demo:
roles/demo
├── defaults
│ └── main.yaml
├── files
│ └── foo
├── handlers
│ └── main.yaml
├── library
│ └── samplemod.py
├── meta
│ └── main.yaml
├── tasks
│ └── main.yaml
├── templates
│ └── bar.j2
└── vars
└── main.yaml
When creating a role, not every directory or file is required. Only the files that exist will be processed. Thus, our example of your role does not require or use handlers; the entire handlers part of the tree could simply be left out.
Read now
Unlock full access