This repository has been archived by the owner on Jan 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansible-container.yml
84 lines (84 loc) · 2.61 KB
/
ansible-container.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
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
78
79
80
81
82
83
84
- gather_facts: false
tasks:
- docker_service:
definition:
services: &id001
web:
image: docker-host:5000/ansible-container/ansible-container-web:v1
environment:
PYTHONUNBUFFERED: '1'
working_dir: /project
entrypoint:
- python3
- /project/manage.py
command:
- runserver
- 0.0.0.0:8000
ports:
- 80:8000
nodes:
image: docker-host:5000/ansible-container/ansible-container-nodes:v1
environment:
PYTHONUNBUFFERED: '1'
working_dir: /project
entrypoint:
- python3
- /project/manage.py
command:
- runserver
- 239.255.0.42:8000
ports:
- 8000:8000
version: '2'
state: present
project_name: ansible-container
tags:
- start
- docker_service:
definition:
services: *id001
version: '2'
state: present
project_name: ansible-container
restarted: true
tags:
- restart
- docker_service:
definition:
services: *id001
version: '2'
state: present
project_name: ansible-container
stopped: true
tags:
- stop
- docker_service:
definition:
services: *id001
version: '2'
state: absent
project_name: ansible-container
remove_volumes: yes
tags:
- destroy
- docker_image:
state: absent
force: yes
name: ansible-container-web:20170603180431
tags: destroy
- docker_image:
state: absent
force: yes
name: ansible-container-web:latest
tags: destroy
- docker_image:
state: absent
force: yes
name: ansible-container-nodes:latest
tags: destroy
- docker_image:
state: absent
force: yes
name: ansible-container-conductor:latest
tags: destroy
hosts: localhost