]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
container-common: Enable docker on boot for ubuntu
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 1 Apr 2019 16:12:52 +0000 (12:12 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 10 Apr 2019 00:02:35 +0000 (00:02 +0000)
docker daemon is automatically started during package installation
but the service isn't enabled on boot.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 37816570c6204ccc37279f7120309ad31cf3f5cb)

roles/ceph-container-common/tasks/pre_requisites/prerequisites.yml

index e6d001a873edfe84df663401bef8f1bb87cbd707..25910c5158e84150b1b128b279f7e5c48cc622ef 100644 (file)
     - 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