From a84030d66e857751ebd63406af1e845bcf95c0bb Mon Sep 17 00:00:00 2001 From: SamYaple Date: Fri, 25 Dec 2015 22:37:07 +0000 Subject: [PATCH] Convert memcache to kolla_docker Change-Id: Id5935d4d47999f05aa13b6284f11ae78564b60cc Partially-Implements: blueprint kolla-docker-module --- ansible/roles/memcached/tasks/start.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/ansible/roles/memcached/tasks/start.yml b/ansible/roles/memcached/tasks/start.yml index a753e14ec4..aed1c6a632 100644 --- a/ansible/roles/memcached/tasks/start.yml +++ b/ansible/roles/memcached/tasks/start.yml @@ -1,19 +1,9 @@ --- - name: Starting memcached container - docker: - tty: True - net: host - pull: "{{ docker_pull_policy }}" - restart_policy: "{{ docker_restart_policy }}" - restart_policy_retry: "{{ docker_restart_policy_retry }}" - state: reloaded - registry: "{{ docker_registry }}" - username: "{{ docker_registry_username }}" - password: "{{ docker_registry_password }}" - insecure_registry: "{{ docker_insecure_registry }}" - name: memcached + kolla_docker: + action: "start_container" + common_options: "{{ docker_common_options }}" image: "{{ memcached_image_full }}" + name: "memcached" volumes: "{{ node_config_directory }}/memcached/:{{ container_config_directory }}/:ro" - env: - KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" when: inventory_hostname in groups['memcached']