Chris Hammer 24ecb46c30
Some checks failed
continuous-integration/drone/push Build is failing
Ansible-lint compliance for roles/bashrc
Ansible-lint compliance for roles/etc_hosts
2023-12-16 03:23:00 -05:00

17 lines
386 B
YAML

---
- name: Set etc_hosts_etc_hosts_file if running in Docker
set_fact:
etc_hosts_etc_hosts_file: "{{ etc_hosts_etc_hosts_file }}.docker"
when:
- ansible_virtualization_type | regex_search("docker|podman|container")
- name: Deploy {{ etc_hosts_etc_hosts_file }}
template:
src: templates/etc_hosts.j2
dest: "{{ etc_hosts_etc_hosts_file }}"
mode: "0644"
...