Skip to content

Commit

Permalink
feat: add remove playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
jomrr committed Feb 17, 2024
1 parent 03e5463 commit a3d87bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions playbooks/remove.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# name: ansible-collection-meta
# file: playbooks/remove.yml

- name: "Remove configured paths in relative_paths_to_remove"
hosts: "{{ target | default('all') }}"
become: false
gather_facts: false
tasks:
- name: "Ensure that paths from list relative_paths_to_remove are absent"
ansible.builtin.file:
path: "{{ ansible_host }}/{{ item }}"
state: absent
loop: "{{ relative_paths_to_remove }}"
File renamed without changes.

0 comments on commit a3d87bc

Please sign in to comment.