19 lines
492 B
YAML
19 lines
492 B
YAML
---
|
|
|
|
- hosts: '{{ ip_addr }}'
|
|
become: yes
|
|
become_method: sudo
|
|
gather_facts: yes
|
|
|
|
tasks:
|
|
|
|
- name: "[CONFIG RESOLV FILE] Comprobando si es necesario configurar resolv file "
|
|
debug:
|
|
msg: "No es necesario configurar resolv file en la máquina"
|
|
when: resolv_enabled is not defined or not resolv_enabled
|
|
|
|
- name: "[CONFIG RESOLV FILE] Configure resolv file"
|
|
import_role:
|
|
name: config-resolv
|
|
when: resolv_enabled is defined and resolv_enabled
|