From: Andrew Schoen Date: Thu, 5 May 2016 18:59:36 +0000 (-0500) Subject: use the use_systemd fact when starting OSDs X-Git-Tag: ceph-ansible-1.0.5-33~52 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4912a979f7b93d26c7c7a1aa09f1db8489078490;p=ceph-ansible.git use the use_systemd fact when starting OSDs Signed-off-by: Andrew Schoen (cherry picked from commit 5669b6ba7c2e021bd53088ea774508983dab11d3) --- diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index 1a8841f24..6f0f24b37 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -74,7 +74,7 @@ failed_when: false register: osd_id when: - ansible_distribution != "Ubuntu" and + use_systemd and is_after_hammer - name: enable osd service instance(s) (for or after infernalis) @@ -85,7 +85,7 @@ with_items: osd_id.stdout_lines failed_when: false when: - ansible_distribution != "Ubuntu" and + use_systemd and is_after_hammer - name: start and add that the osd service(s) to the init sequence (for or after infernalis) @@ -96,5 +96,5 @@ with_items: osd_id.stdout_lines changed_when: false when: - ansible_distribution != "Ubuntu" and + use_systemd and is_after_hammer