forked from jet-dev-team/drupal-dockerizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean.yml
34 lines (27 loc) · 784 Bytes
/
clean.yml
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
---
- hosts: all
vars_files:
- default.config.yml
pre_tasks:
- name: Include config override file, if it exists.
include_vars: "{{ item }}"
with_fileglob:
- ../drupal-dockerizer.yml
roles: []
tasks:
- name: Stop all Docker containers.
command: docker-compose -p {{ compose_project_name }} down --remove-orphans --volumes
args:
chdir: "{{ docker_runtime_dir }}"
- name: Ensure runtime removed.
become: true
file:
path: "{{ docker_runtime_dir }}"
state: absent
- name: Remove Host name from /etc/hosts
become: true
blockinfile:
marker: "<!-- {mark} {{ compose_project_name }} Drupal Dockerizer -->"
state: absent
path: /etc/hosts
block: |