summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rancher/molecule/default/cleanup.yml
blob: 13b482785c91b7b52701aafafc4bddc811ac32d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: Cleanup host
  hosts: localhost
  roles:
    - role: cleanup-containers
      vars:
        container_list:
          - rancher-agent
          - rancher-server
          # For some reason getting error "Device busy error" when trying to delete directory with root privileges and rancher-containers not anymore running.
          # - role: cleanup-directories
          #  vars:
          #    directories_files_list_to_remove:
          #      - /var/lib/rancher/