Ansible playbook remove directory
examples/ansible/remove-directory.yml
- hosts: 127.0.0.1 vars: ansible_python_interpreter: /usr/bin/python3 tasks: - name: Remove directory file: path: /tmp/somedir state: absent
ansible-playbook remove-directory.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