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