March 2019
Intermediate to advanced
412 pages
9h 49m
English
A subset of the command family of modules (command, shell, and script) has a pair of special arguments that will influence whether the task work has already been done, and thus, whether or not a task will result in a change. The options are creates and removes. These two arguments expect a file path as a value. When Ansible attempts to execute a task with the creates or removes arguments, it will first check whether the referenced file path exists.
If the path exists and the creates argument was used, Ansible will consider that the work has already been completed and will return ok. Conversely, if the path does not exist and the removes argument is used, then Ansible will again consider the work to be ...
Read now
Unlock full access