update logic for container checks
This commit is contained in:
parent
0d71a1adcb
commit
b3deb05555
@ -8,7 +8,7 @@ namespace: jchristianh
|
||||
name: baseos
|
||||
|
||||
# The version of the collection. Must be compatible with semantic versioning
|
||||
version: 1.0.16
|
||||
version: 1.0.17
|
||||
|
||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||
readme: README.md
|
||||
|
@ -3,9 +3,7 @@
|
||||
set_fact:
|
||||
__etc_hosts_file: "{{ __etc_hosts_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 {{ __etc_hosts_file }}
|
||||
|
@ -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 }}
|
||||
|
@ -4,6 +4,4 @@
|
||||
name : snmpd
|
||||
state: restarted
|
||||
when:
|
||||
- ansible_virtualization_type == "docker" or
|
||||
ansible_virtualization_type == "podman" or
|
||||
ansible_virtualization_type == "container"
|
||||
- ansible_virtualization_type | regex_search("docker|podman|container")
|
||||
|
Loading…
x
Reference in New Issue
Block a user