Merge pull request #90 from loles/fix_remove

Use ansible docker module to remove services
This commit is contained in:
CGenie 2015-06-11 13:51:53 +02:00
commit 188d768b20
5 changed files with 20 additions and 12 deletions

View File

@ -1,6 +1,8 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- shell: docker stop {{ name }}
- shell: docker rm {{ name }}
- name: glance api container
docker:
name: {{ name }}
image: {{ image }}
state: absent

View File

@ -1,6 +1,8 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- shell: docker stop {{ name }}
- shell: docker rm {{ name }}
- name: glance registry container
docker:
name: {{ name }}
image: {{ image }}
state: absent

View File

@ -1,6 +1,8 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- shell: docker stop {{ name }}
- shell: docker rm {{ name }}
- name: haproxy container
docker:
name: {{ name }}
image: {{ image }}
state: absent

View File

@ -2,5 +2,8 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- shell: docker stop {{ name }}
- shell: docker rm {{ name }}
- name: keystone container
docker:
image: {{ image }}
name: {{ name }}
state: absent

View File

@ -1,4 +1,3 @@
# TODO
- hosts: [{{ ip }}]
sudo: yes
tasks: