Allow haproxy role to pull images
Change-Id: I094f1d35f60bf566ba7382504a7425f16ae975d8 Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
b60bb946d0
commit
e435042b9b
6
ansible/roles/haproxy/tasks/deploy.yml
Normal file
6
ansible/roles/haproxy/tasks/deploy.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['haproxy']
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
when: inventory_hostname in groups['haproxy']
|
@ -1,6 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include: config.yml
|
- include: "{{ action }}.yml"
|
||||||
when: inventory_hostname in groups['haproxy']
|
|
||||||
|
|
||||||
- include: start.yml
|
|
||||||
when: inventory_hostname in groups['haproxy']
|
|
||||||
|
14
ansible/roles/haproxy/tasks/pull.yml
Normal file
14
ansible/roles/haproxy/tasks/pull.yml
Normal 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']
|
Loading…
Reference in New Issue
Block a user