update logic for set_fact

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

View File

@ -8,7 +8,7 @@ namespace: jchristianh
name: baseos
# The version of the collection. Must be compatible with semantic versioning
version: 1.0.14
version: 1.0.15
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md

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 }}