summaryrefslogtreecommitdiff
path: root/Apache Zookeeper/3.5.9/zookeeper/role/tasks/uninstall.yml
blob: 0f7bb686d2a8bfd39157dbcaa419ea1f6055866e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- block: 
    - name: Stopping and removing exporter container
      docker_container:
        name: 'zookeeper_exporter'
        state: absent

    - name: Removing old exporter image
      docker_image:
        name: 'zookeeper_exporter'
        tag: 'v1.0'
        state: absent

    - name: Stopping and removing {{ container_name }} container
      docker_container:
        name: '{{ container_name }}'
        state: absent
    
    - name: Removing old {{ image_name }} image
      docker_image:
        name: '{{ image_name }}'
        tag: '{{ image_tag }}'
        state: absent

    - name: Ansible delete old {{ deploy_dir }}/{{ container_name }}
      file:
        path: '{{ deploy_dir }}/{{ container_name }}'
        state: absent