Ansible – Using “stat” and “assert”
When building playbooks and tasks, you may find you want to check the status of a host before you attempt to perform a particular action upon it. You wouldn’t want it to attempt to perform an action which would fail because something is missing, you’d want it to check first. Although you can use conditionals … Read more