16 lines
496 B
YAML
16 lines
496 B
YAML
|
|
- name: "[CONFIG HOSTS FILE] Comprobando si es necesario configurar hosts file "
|
|
meta: end_host
|
|
when: hosts_enabled is not defined or not hosts_enabled
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
- name: Replace old /etc/hosts with new /etc/hosts
|
|
template:
|
|
src: hosts.j2
|
|
dest: "{{ path_hosts }}"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
backup: true
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|