diff --git a/ansible/roles/ironic/tasks/bootstrap.yml b/ansible/roles/ironic/tasks/bootstrap.yml index 208cb681d6..3a456b0c0b 100644 --- a/ansible/roles/ironic/tasks/bootstrap.yml +++ b/ansible/roles/ironic/tasks/bootstrap.yml @@ -60,5 +60,4 @@ - "{{ node_config_directory }}/ironic-pxe/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" - "ironic_pxe:/tftpboot/" - run_once: True - delegate_to: "{{ groups['ironic-pxe'][0] }}" + when: "{{ inventory_hostname in groups['ironic-pxe'] }}"