vn-ansible/linux-config-resolv.yaml

19 lines
492 B
YAML
Raw Normal View History

2024-02-14 16:02:22 +00:00
---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
tasks:
2024-02-14 17:24:04 +00:00
- 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
2024-02-14 16:02:22 +00:00
- name: "[CONFIG RESOLV FILE] Configure resolv file"
import_role:
name: config-resolv
2024-02-14 17:24:04 +00:00
when: resolv_enabled is defined and resolv_enabled