- name: clear varnish cache hosts: proxies user: root serial: 1 tasks: - name: clear varnish command: varnishadm -T 127.0.0.1:6082 url.purge .