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