--- tags: - ansible references: - https://docs.ansible.com/ansible/latest/collections/ansible/builtin/wait_for_module.html --- There's a module to wait for all sorts of stuff, e.g a file being created or removed: ```yaml ansible.builtin.wait_for: path: /opt/puppetlabs/puppet/cache/state/agent_catalog_run.lock state: absent ```