---

- name: pip install ironic
  pip: name='{{ item }}' extra_args='-i {{ openstack.pypi_mirror }}'
  with_items:
    - MySQL-python
    - '{{ ironic.path }}'

- name: pip install ironicclient
  pip: name='{{ ironic.client_path }}' extra_args='-i {{ openstack.pypi_mirror }}'

- name: start ironic controller services
  service: name={{ item }} state=started
  with_items:
    - ironic-api
    - ironic-conductor

- name: restart ironic controller services
  service: name={{ item }} state=restarted
  with_items:
    - ironic-api
    - ironic-conductor

---
- name: pip install ironic
  pip: name='{{ item }}' extra_args='-i {{ openstack.pypi_mirror }}'
  with_items:
    - MySQL-python
    - '{{ ironic.path }}'

- name: pip install ironicclient
  pip: name='{{ ironic.client_path }}' extra_args='-i {{ openstack.pypi_mirror }}'

- name: restart ironic controller services
  service: name={{ item }} state=restarted
  with_items:
    - ironic-api
    - ironic-conductor
  when: restart|default('True')

Add restart conditional to ironic handler
Add restart conditional to ironic handler

Also removes an unused handler.
