add initial resolv_conf role; fixes for etc_hosts

This commit is contained in:
Chris Hammer
2022-03-15 02:24:39 -04:00
parent 03e505837d
commit c4138d820d
14 changed files with 157 additions and 1 deletions

View File

@ -0,0 +1,15 @@
---
- name: Set resolv_conf_file if running in Docker
set_fact:
__resolv_conf_file: "{{ __resolv_conf_file_docker }}"
when: ansible_virtualization_type == "docker"
- name: Deploy {{ __resolv_conf_file }}
template:
src: templates/resolv_conf.j2
dest: "{{ __resolv_conf_file }}"
mode: 0644
...