mirror of https://github.com/ceph/ceph-ansible.git
11 lines
471 B
YAML
11 lines
471 B
YAML
---
|
|
- name: Check if podman binary is present
|
|
ansible.builtin.stat:
|
|
path: /usr/bin/podman
|
|
register: podman_binary
|
|
|
|
- name: Set_fact container_binary
|
|
ansible.builtin.set_fact:
|
|
container_binary: "{{ 'podman' if (podman_binary.stat.exists and ansible_facts['distribution'] == 'Fedora') or (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] in ['8', '9']) else 'docker' }}"
|
|
when: not docker2podman | default(false) | bool
|