Newer
Older
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
- name: MOLECULE | Cleanup
hosts: all
vars:
package_name_docker: 'docker'
package_name_docker_ce: 'docker-ce'
package_name_docker_compose: 'docker-compose'
package_name_docker_compose_plugin: 'docker-compose-plugin'
container_name_cups: 'c3printing-cups'
container_name_app: 'c3printing-app'
container_name_proxy: 'c3printing-proxy'
container_name_influxdb: 'c3printing-influxdb'
pre_tasks:
###
### VARIABLES
###
- name: MOLECULE | CLEANUP | PRE-TASKS | VARIABLES | From -> ../../defaults
ansible.builtin.include_vars:
dir: ../../defaults
depth: 1
extensions:
- 'yml'
- name: MOLECULE | CLEANUP | PRE-TASKS | VARIABLES | From -> ../../../../roles/dependencies/defaults
ansible.builtin.include_vars:
dir: ../../../../roles/dependencies/defaults
depth: 1
extensions:
- 'yml'
- name: MOLECULE | CLEANUP | PRE-TASKS | VARIABLES | From -> ../../../../roles/clone_repositories/defaults
ansible.builtin.include_vars:
dir: ../../../../roles/clone_repositories/defaults
depth: 1
extensions:
- 'yml'
- name: MOLECULE | CLEANUP | PRE-TASKS | VARIABLES | From -> ../../../../roles/docker_images/defaults
ansible.builtin.include_vars:
dir: ../../../../roles/docker_images/defaults
depth: 1
extensions:
- 'yml'
- name: MOLECULE | CLEANUP | PRE-TASKS | VARIABLES | From -> ../../../../inventories/group_vars
ansible.builtin.include_vars:
dir: ../../../../inventories/group_vars
extensions:
- 'yml'
- name: MOLECULE | CLEANUP | PRE-TASKS | VARIABLES | From -> ../../../../inventories/host_vars
ansible.builtin.include_vars:
dir: ../../../../inventories/host_vars
extensions:
- 'yml'
###
### DOCKER COMPOSE
###
- name: MOLECULE | CLEANUP | PRE-TASKS | DOCKER | Remove all running containers.
community.docker.docker_compose_v2:
project_src: "{{ c3infodesk_printer_folder_docker }}"
# state: absent
state: absent
register: ret_docker_compose_down
- name: MOLECULE | CLEANUP | PRE-TASKS | DOCKER | Output from removing all containers.
ansible.builtin.debug:
var: ret_docker_compose_down
when: c3infodesk_printer_docker_compose_up_debug | bool
# - name: MOLECULE | CLEANUP | PRE-TASKS | DOCKER | raise error.
# ansible.builtin.debug:
# msg: "ERROR RAISED"
# failed_when: true