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>
pull/3979/head
Dimitri Savineau 2019-05-10 15:35:17 -04:00 committed by Guillaume Abrioux
parent c3b0ee30a1
commit d2ad191eca
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