Configuration
Syntax
service "name" {
configuration {
play "[play_name]" {
name = "[Play Description]"
hosts = "[Target Hosts]"
become = [true|false]
vars = {
[variable_name] = [value]
}
task {
name = "[Task Name]"
[module] {
[module_specific_attributes]
}
[optional_attributes]
}
handler {
name = "[Handler Name]"
[module] {
[module_specific_attributes]
}
}
}
}
}Defining Plays
Tasks
Handlers
Conditionals and Loops
Example
Last updated