]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
docker: fail if systemd is not present
authorSébastien Han <seb@redhat.com>
Wed, 1 Feb 2017 16:18:17 +0000 (17:18 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 1 Feb 2017 16:18:17 +0000 (17:18 +0100)
Since we treat containers as services using systemd, systemd is an
absolute requirement.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-docker-common/tasks/main.yml [new file with mode: 0644]
roles/ceph-docker-common/tasks/system_checks.yml [new file with mode: 0644]

diff --git a/roles/ceph-docker-common/tasks/main.yml b/roles/ceph-docker-common/tasks/main.yml
new file mode 100644 (file)
index 0000000..14e987c
--- /dev/null
@@ -0,0 +1,2 @@
+---
+- include: system_checks.yml
diff --git a/roles/ceph-docker-common/tasks/system_checks.yml b/roles/ceph-docker-common/tasks/system_checks.yml
new file mode 100644 (file)
index 0000000..a9a5311
--- /dev/null
@@ -0,0 +1,5 @@
+---
+- name: fail if systemd is not present
+  fail:
+    msg: "Systemd must be present"
+  when: ansible_service_mgr != 'systemd'