container-common: allow podman for other distros

Currently podman installation is very tied to RHEL 8 even if we're
able to install it on Debian/Ubuntu distribution.
This patch changes the way we are starting or not the (fat) container
daemon. Before the condition was based on the distribution release
and now on the container_service_name variable.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit d2ad191eca)
pull/3981/head
Dimitri Savineau 2019-05-10 15:35:17 -04:00 committed by Dimitri Savineau
parent f34c1dcd9d
commit bd33bcef2b
2 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,7 @@
enabled: yes
tags:
with_pkg
when: not (ansible_os_family == 'RedHat' and
ansible_distribution_major_version == '8')
when: container_service_name == 'docker'
- name: ensure tmpfiles.d is present
lineinfile:

View File

@ -1,3 +1,4 @@
---
container_package_name: podman
container_service_name: podman
container_binding_name: podman