docker2podman: use set_fact to override variables

play vars have lower precedence than role vars and `set_fact`.
We must use a `set_fact` to reset these variables.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b0c491800a)
pull/4928/head
Guillaume Abrioux 2020-01-10 14:30:35 +01:00
parent 02ec088568
commit e034a6da69
1 changed files with 8 additions and 6 deletions

View File

@ -47,12 +47,6 @@
- "{{ iscsi_gw_group_name | default('iscsigws') }}" - "{{ iscsi_gw_group_name | default('iscsigws') }}"
- "{{ rbdmirror_group_name | default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
become: true become: true
vars:
docker2podman: True
container_binary: podman
container_binding_name: podman
container_service_name: podman
container_package_name: podman
pre_tasks: pre_tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -73,6 +67,14 @@
tasks: tasks:
- name: set_fact container_binary, container_binding_name, container_service_name, container_package_name
set_fact:
docker2podman: True
container_binary: podman
container_binding_name: podman
container_service_name: podman
container_package_name: podman
- name: install podman - name: install podman
package: package:
name: podman name: podman