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 <dsavinea@redhat.com>
(cherry picked from commit 37816570c6)
pull/3831/head
Dimitri Savineau 2019-04-01 12:12:52 -04:00 committed by mergify[bot]
parent 532d749b2e
commit 4cc318d13c
1 changed files with 10 additions and 0 deletions

View File

@ -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