- hosts: [{{host}}] sudo: yes tasks: - file: path={{config_dir}} state=absent