ansible ad hoc file module code example Example: ansible ad hoc file module ansible you_hosts -m file -a "path=/home/my_file.txt state=absent"