módulo de archivo ad hoc ansible

ansible you_hosts -m file -a "path=/home/my_file.txt state=absent"
RicarHincapie