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 <seb@redhat.com>
pull/1278/head
Sébastien Han 2017-02-01 17:18:17 +01:00
parent 0d4cd0db7e
commit 88a2b2de8c
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,2 @@
---
- include: system_checks.yml

View File

@ -0,0 +1,5 @@
---
- name: fail if systemd is not present
fail:
msg: "Systemd must be present"
when: ansible_service_mgr != 'systemd'