Debian Codegraph @

test/integration/targets/ansible-galaxy/cleanup.yml

raw symbols SCIP
1 - hosts: localhost
2 vars:
3 git_install: '{{ lookup("file", lookup("env", "OUTPUT_DIR") + "/git_install.json") | from_json }}'
4 openssl_install: '{{ lookup("file", lookup("env", "OUTPUT_DIR") + "/openssl_install.json") | from_json }}'
5 ws_dir: '{{ lookup("file", lookup("env", "OUTPUT_DIR") + "/ws_dir.json") | from_json }}'
6 tasks:
7 - name: cleanup
8 include_tasks: "{{ cleanup_filename }}"
9 with_first_found:
10 - "cleanup-{{ ansible_distribution | lower }}.yml"
11 - "cleanup-default.yml"
12 loop_control:
13 loop_var: cleanup_filename
14
15 - name: Remove default collection directories
16 file:
17 path: "{{ item }}"
18 state: absent
19 loop:
20 - "~/.ansible/collections/ansible_collections"
21 - /usr/share/ansible/collections/ansible_collections
22
23 - name: Remove webserver directory
24 file:
25 path: "{{ ws_dir }}"
26 state: absent