From: Sébastien Han Date: Wed, 1 Feb 2017 16:18:17 +0000 (+0100) Subject: docker: fail if systemd is not present X-Git-Tag: v2.2.0rc1~42^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f446b1c82f609569ccfbc2c00b5296d6884549f0;p=ceph-ansible.git docker: fail if systemd is not present Since we treat containers as services using systemd, systemd is an absolute requirement. Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-docker-common/tasks/main.yml b/roles/ceph-docker-common/tasks/main.yml new file mode 100644 index 000000000..14e987cde --- /dev/null +++ b/roles/ceph-docker-common/tasks/main.yml @@ -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 index 000000000..a9a5311e6 --- /dev/null +++ b/roles/ceph-docker-common/tasks/system_checks.yml @@ -0,0 +1,5 @@ +--- +- name: fail if systemd is not present + fail: + msg: "Systemd must be present" + when: ansible_service_mgr != 'systemd'