Ansible playbook remove file
examples/ansible/remove-file.yml
- hosts: 127.0.0.1 vars: ansible_python_interpreter: /usr/bin/python3 tasks: - name: Remove file file: path: /tmp/hello.txt state: absent
ansible-playbook remove-file.yml
See also Ansible file module.
Published on 2019-06-12
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post