name -> resource_name
This commit is contained in:
parent
e892974ec7
commit
b9c5561781
@ -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 }}
|
||||
|
@ -2,7 +2,7 @@
|
||||
sudo: yes
|
||||
tasks:
|
||||
- docker:
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
image: {{ image }}
|
||||
state: running
|
||||
net: host
|
||||
|
@ -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 }}
|
||||
|
@ -3,7 +3,7 @@
|
||||
sudo: yes
|
||||
tasks:
|
||||
- docker:
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
image: {{ image }}
|
||||
state: running
|
||||
net: host
|
||||
|
@ -3,6 +3,6 @@
|
||||
tasks:
|
||||
- name: glance api container
|
||||
docker:
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
image: {{ image }}
|
||||
state: absent
|
||||
|
@ -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:
|
||||
|
@ -3,6 +3,6 @@
|
||||
tasks:
|
||||
- name: glance registry container
|
||||
docker:
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
image: {{ image }}
|
||||
state: absent
|
||||
|
@ -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
|
||||
|
@ -3,6 +3,6 @@
|
||||
tasks:
|
||||
- name: haproxy container
|
||||
docker:
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
image: {{ image }}
|
||||
state: absent
|
||||
|
@ -3,7 +3,7 @@
|
||||
sudo: yes
|
||||
tasks:
|
||||
- docker:
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
image: {{ image }}
|
||||
state: running
|
||||
net: host
|
||||
|
@ -5,5 +5,5 @@
|
||||
- name: keystone container
|
||||
docker:
|
||||
image: {{ image }}
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
state: absent
|
||||
|
@ -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:
|
||||
|
@ -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}}
|
||||
|
@ -3,6 +3,6 @@
|
||||
tasks:
|
||||
- name: mariadb container
|
||||
docker:
|
||||
name: {{ name }}
|
||||
name: {{ resource_name }}
|
||||
image: {{ image }}
|
||||
state: absent
|
||||
|
Loading…
Reference in New Issue
Block a user