name -> resource_name

This commit is contained in:
Łukasz Oleś 2015-06-29 13:33:57 +00:00
parent e892974ec7
commit b9c5561781
14 changed files with 16 additions and 16 deletions

View File

@ -2,5 +2,5 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- shell: docker stop {{ name }}
- shell: docker rm {{ name }}
- shell: docker stop {{ resource_name }}
- shell: docker rm {{ resource_name }}

View File

@ -2,7 +2,7 @@
sudo: yes
tasks:
- docker:
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: running
net: host

View File

@ -2,5 +2,5 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- shell: docker stop {{ name }}
- shell: docker rm {{ name }}
- shell: docker stop {{ resource_name }}
- shell: docker rm {{ resource_name }}

View File

@ -3,7 +3,7 @@
sudo: yes
tasks:
- docker:
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: running
net: host

View File

@ -3,6 +3,6 @@
tasks:
- name: glance api container
docker:
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: absent

View File

@ -5,7 +5,7 @@
- docker:
command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-api"
#command: /usr/bin/glance-api
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: running
expose:

View File

@ -3,6 +3,6 @@
tasks:
- name: glance registry container
docker:
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: absent

View File

@ -5,7 +5,7 @@
- docker:
#command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-registry"
command: /usr/bin/glance-registry
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: running
net: host

View File

@ -3,6 +3,6 @@
tasks:
- name: haproxy container
docker:
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: absent

View File

@ -3,7 +3,7 @@
sudo: yes
tasks:
- docker:
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: running
net: host

View File

@ -5,5 +5,5 @@
- name: keystone container
docker:
image: {{ image }}
name: {{ name }}
name: {{ resource_name }}
state: absent

View File

@ -4,7 +4,7 @@
- name: keystone container
docker:
command: /bin/bash -c "keystone-manage db_sync && /usr/bin/keystone-all"
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: running
expose:

View File

@ -4,7 +4,7 @@
- name: keystone service and endpoint
keystone_service:
token: {{admin_token}}
name: {{name}}
name: {{resource_name}}
type: {{type}}
description: {{description}}
publicurl: {{publicurl}}

View File

@ -3,6 +3,6 @@
tasks:
- name: mariadb container
docker:
name: {{ name }}
name: {{ resource_name }}
image: {{ image }}
state: absent