Browse Source

Merge "[train-only] Set oc_container_cli for checks during ffu" into stable/train

changes/37/794437/1 train-em
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
105de767e3
1 changed files with 16 additions and 6 deletions
  1. +16
    -6
      roles/container_status/tasks/main.yaml

+ 16
- 6
roles/container_status/tasks/main.yaml View File

@ -1,10 +1,20 @@
---
- name: Set oc_container_cli fact for the Overcloud nodes
set_fact:
oc_container_cli: "{{ hostvars[inventory_hostname].container_cli | default('podman', true) }}"
when:
- "'overcloud' in group_names"
- oc_container_cli is not defined
- when: "'overcloud' in group_names"
block:
- name: Check for docker cli
stat:
path: "/var/run/docker.sock"
register: check_docker_cli
check_mode: false
- name: Set oc_container_cli fact for the Overcloud nodes
set_fact:
oc_container_cli: |-
{% set oc_container_cli = 'podman' %}
{% if check_docker_cli.stat.exists|bool %}
{% set oc_container_cli = 'docker' %}
{% endif %}
{{ oc_container_cli }}
- when: "'Undercloud' in group_names"
block:


Loading…
Cancel
Save