From b6ac0b2eeffff51a093c8d6b3e1e1af1de672ced Mon Sep 17 00:00:00 2001 From: SamYaple Date: Tue, 5 Jan 2016 18:05:23 +0000 Subject: [PATCH] Allow memcached role to pull images Change-Id: I860af348b126979fa756f89c6fac769c750be85a Partially-Implements: blueprint pre-pull-images --- ansible/roles/memcached/tasks/deploy.yml | 4 ++++ ansible/roles/memcached/tasks/main.yml | 4 +--- ansible/roles/memcached/tasks/pull.yml | 7 +++++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 ansible/roles/memcached/tasks/deploy.yml create mode 100644 ansible/roles/memcached/tasks/pull.yml diff --git a/ansible/roles/memcached/tasks/deploy.yml b/ansible/roles/memcached/tasks/deploy.yml new file mode 100644 index 0000000000..1f16915ad9 --- /dev/null +++ b/ansible/roles/memcached/tasks/deploy.yml @@ -0,0 +1,4 @@ +--- +- include: config.yml + +- include: start.yml diff --git a/ansible/roles/memcached/tasks/main.yml b/ansible/roles/memcached/tasks/main.yml index 1f16915ad9..b017e8b4ad 100644 --- a/ansible/roles/memcached/tasks/main.yml +++ b/ansible/roles/memcached/tasks/main.yml @@ -1,4 +1,2 @@ --- -- include: config.yml - -- include: start.yml +- include: "{{ action }}.yml" diff --git a/ansible/roles/memcached/tasks/pull.yml b/ansible/roles/memcached/tasks/pull.yml new file mode 100644 index 0000000000..1f8a639e83 --- /dev/null +++ b/ansible/roles/memcached/tasks/pull.yml @@ -0,0 +1,7 @@ +--- +- name: Pulling memcached image + kolla_docker: + action: "pull_image" + common_options: "{{ docker_common_options }}" + image: "{{ memcached_image_full }}" + when: inventory_hostname in groups['memcached']