Systemd is not just for Red Hat derivatives

Change the check for reloading systemd configuration
to look for use of the systemd template rather than
checking by distro since Ubuntu 15.04 uses systemd
too.

Change-Id: I7f359d989f767b32ed31c8dc5615a62e33a48c7f
This commit is contained in:
stephane 2015-08-26 13:52:19 -07:00
parent e4f32c7c87
commit c0f2ed0eaf
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@
- { service_name: 'ironic-conductor', username: 'ironic', args: '--config-file /etc/ironic/ironic.conf'}
- name: "Reload systemd configuration"
command: systemctl daemon-reload
when: ansible_os_family == 'RedHat'
when: init_template == 'systemd_template.j2'
- name: "Start ironic-conductor"
service: name=ironic-conductor state=started
- name: "Start ironic-api"