Allow haproxy role to pull images

Change-Id: I094f1d35f60bf566ba7382504a7425f16ae975d8
Partially-Implements: blueprint pre-pull-images
This commit is contained in:
SamYaple 2016-01-05 17:52:38 +00:00
parent b60bb946d0
commit e435042b9b
3 changed files with 21 additions and 5 deletions

View File

@ -0,0 +1,6 @@
---
- include: config.yml
when: inventory_hostname in groups['haproxy']
- include: start.yml
when: inventory_hostname in groups['haproxy']

View File

@ -1,6 +1,2 @@
---
- include: config.yml
when: inventory_hostname in groups['haproxy']
- include: start.yml
when: inventory_hostname in groups['haproxy']
- include: "{{ action }}.yml"

View File

@ -0,0 +1,14 @@
---
- name: Pulling keepalived image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ keepalived_image_full }}"
when: inventory_hostname in groups['haproxy']
- name: Pulling haproxy image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ haproxy_image_full }}"
when: inventory_hostname in groups['haproxy']