diff --git a/ansible/roles/ironic/tasks/config.yml b/ansible/roles/ironic/tasks/config.yml index cf3eecdf10..a878f32f7e 100644 --- a/ansible/roles/ironic/tasks/config.yml +++ b/ansible/roles/ironic/tasks/config.yml @@ -61,6 +61,7 @@ - "{{ node_custom_config }}/ironic/ironic-dnsmasq.conf" - "{{ node_custom_config }}/ironic/{{ inventory_hostname }}/ironic-dnsmasq.conf" - "ironic-dnsmasq.conf.j2" + when: inventory_hostname in groups['ironic-inspector'] - name: Copying pxelinux.cfg default template: diff --git a/ansible/roles/ironic/tasks/pull.yml b/ansible/roles/ironic/tasks/pull.yml index 36d896c081..8590ba0718 100644 --- a/ansible/roles/ironic/tasks/pull.yml +++ b/ansible/roles/ironic/tasks/pull.yml @@ -18,7 +18,7 @@ action: "pull_image" common_options: "{{ docker_common_options }}" image: "{{ ironic_dnsmasq_image_full }}" - when: inventory_hostname in groups['ironic-conductor'] + when: inventory_hostname in groups['ironic-inspector'] - name: Pulling ironic-inspector image kolla_docker: diff --git a/ansible/roles/ironic/tasks/start.yml b/ansible/roles/ironic/tasks/start.yml index 22195d4586..aacc9923e0 100644 --- a/ansible/roles/ironic/tasks/start.yml +++ b/ansible/roles/ironic/tasks/start.yml @@ -63,4 +63,4 @@ volumes: - "{{ node_config_directory }}/ironic-dnsmasq/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" - when: inventory_hostname in groups['ironic-conductor'] + when: inventory_hostname in groups['ironic-inspector']