September 2018
Beginner to intermediate
214 pages
5h 53m
English
This is the controller folder. It contains the main YAML files. The code within those files executes the main role tasks by calling all the other defined elements of the role. Usually, it has the main.yml file with some YAML files that are OS-specific that ensure certain tasks are executed when the role is run on specific systems. It may also contain other tasks to set up, configure, or ensure the existence of certain tools, services, configuration folders, or packages that failed a test run by the main script and triggered the execution of a task to fix them. The following is a sample task code written on the main.yml file in the tasks folder:
tasks/main.yml:--- - name: check if NTP is installed stat: path: /etc/init.d/ntpd ...
Read now
Unlock full access