From 4cc318d13cc3b9fb2f422b4148ebcf7ee05c3ac1 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 1 Apr 2019 12:12:52 -0400 Subject: [PATCH] container-common: Enable docker on boot for ubuntu docker daemon is automatically started during package installation but the service isn't enabled on boot. Signed-off-by: Dimitri Savineau (cherry picked from commit 37816570c6204ccc37279f7120309ad31cf3f5cb) --- .../tasks/pre_requisites/prerequisites.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/ceph-container-common/tasks/pre_requisites/prerequisites.yml b/roles/ceph-container-common/tasks/pre_requisites/prerequisites.yml index e6d001a87..25910c515 100644 --- a/roles/ceph-container-common/tasks/pre_requisites/prerequisites.yml +++ b/roles/ceph-container-common/tasks/pre_requisites/prerequisites.yml @@ -99,6 +99,16 @@ - ansible_os_family == 'RedHat' - ansible_distribution_major_version == '8' +- name: start docker service + service: + name: docker + state: started + enabled: yes + tags: + with_pkg + when: not (ansible_os_family == 'RedHat' and + ansible_distribution_major_version == '8') + - name: ensure tmpfiles.d is present lineinfile: path: /etc/tmpfiles.d/ceph-common.conf