update logic for set_fact
This commit is contained in:
parent
8707fb0c91
commit
cebcaa1b29
@ -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
|
||||
|
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user