Chris Hammer 8707fb0c91 - fix logic in roles/resolv_conf
- revert roles/hostname; however we're going to go another way
2023-12-09 23:55:36 -05:00

19 lines
463 B
YAML

---
- name: Set resolv_conf_file if running in Docker
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"
- name: Deploy {{ __resolv_conf_file }}
ansible.builtin.template:
src: templates/resolv_conf.j2
dest: "{{ __resolv_conf_file }}"
mode: "0644"
...