Files
ansible_samba_ad_dc/tasks/dns_hosts_restore.yml
2025-09-30 17:40:18 +02:00

12 lines
312 B
YAML

---
- name: Restore original /etc/resolv.conf from backup
copy:
src: "{{ samba_resolv_conf_backup_path }}"
dest: /etc/resolv.conf
remote_src: yes
force: yes
when:
- samba_ad_dc_state == "absent"
- ansible_virtualization_type != "docker"
- samba_resolv_conf_backup_path is defined