kolla-ansible/ansible/roles/ironic/tasks/pull.yml
Mark Goddard c37c1a5879 ironic-dnsmasq should use ironic-inspector group
The ironic_dnsmasq container is currently tied to the ironic-conductor
Ansible group. It is required only for Ironic inspector and should
really either be tied to the ironic-inspector group or have a new
ironic-dnsmasq group defined for it. This problem means that if all
hosts are removed from the ironic-inspector group I will still have an
ironic_dnsmasq container deployed.

This change uses the ironic-inspector group to determine where to place
the ironic_dnsmasq container.

Change-Id: I6af3f402795107b8b9d7a1619722f12cbf496257
Closes-Bug: #1666982
2017-02-22 10:29:30 +00:00

36 lines
1.1 KiB
YAML

---
- name: Pulling ironic-api image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ ironic_api_image_full }}"
when: inventory_hostname in groups['ironic-api']
- name: Pulling ironic-conductor image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ ironic_conductor_image_full }}"
when: inventory_hostname in groups['ironic-conductor']
- name: Pulling ironic-dnsmasq image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ ironic_dnsmasq_image_full }}"
when: inventory_hostname in groups['ironic-inspector']
- name: Pulling ironic-inspector image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ ironic_inspector_image_full }}"
when: inventory_hostname in groups['ironic-inspector']
- name: Pulling ironic-pxe image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ ironic_pxe_image_full }}"
when: inventory_hostname in groups['ironic-pxe']