June 2020
Intermediate to advanced
410 pages
9h 52m
English
Everywhere in IT, caches are used to speed up operations, and Ansible is not an exception.
Usually, caches are good, and for this reason, they are heavily used ubiquitously. However, they might create some problems if they cache a value they should not have cached or if they are not flushed, even if the value has changed.
Flushing caches in Ansible is very straightforward, and it's enough to run ansible-playbook, which we are already running, with the addition of the --flush-cache option, as follows:
ansible-playbook -i inventory helloworld.yaml --flush-cache
Ansible uses Redis to save host variables, as well as execution variables. Sometimes, those variables might be left behind and influence the following executions. ...