update logic for set_fact

This commit is contained in:
2023-12-10 00:51:39 -05:00
parent 8707fb0c91
commit cebcaa1b29
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,9 @@
set_fact:
__etc_hosts_file: "{{ __etc_hosts_file }}.docker"
when:
- ansible_virtualization_type == "docker"
- ansible_virtualization_type == "docker" or
ansible_virtualization_type == "podman" or
ansible_virtualization_type == "container"
- name: Deploy {{ __etc_hosts_file }}