Ansible: Handlers

Handlers in Ansible provide another type of conditional execution. They define a task or tasks whose execution is dependent upon the completion status of the play. For instance, it is a good practice to define an idle timeout limit on ssh sessions. Configuring idle timeout for the ssh daemon requires setting a limit in seconds […]

Ansible: Know When to Say When

Conditional execution is the powerhouse of every programming language. Ansible provides the when operator to make run-time decisions about whether or not a play should be executed. Ansible’s when statement is analogous to the if statement found in many common programming languages. If the condition tested by the when statement passes (evaluates to True), the […]