Some checks failed
continuous-integration/drone/push Build is failing
Ansible-lint compliance for roles/etc_hosts
17 lines
386 B
YAML
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"
|
|
|
|
|
|
...
|