update logic for container checks
This commit is contained in:
@ -3,9 +3,7 @@
|
||||
ansible.builtin.set_fact:
|
||||
__resolv_conf_file: "{{ __resolv_conf_file_docker }}"
|
||||
when:
|
||||
- ansible_virtualization_type == "docker" or
|
||||
ansible_virtualization_type == "podman" or
|
||||
ansible_virtualization_type == "container"
|
||||
- ansible_virtualization_type | regex_search("docker|podman|container")
|
||||
|
||||
|
||||
- name: Deploy {{ __resolv_conf_file }}
|
||||
|
Reference in New Issue
Block a user