playbooks/update_dns_records.yaml
2025-03-15 22:06:02 +01:00

15 lines
353 B
YAML

# Actualiza la configuracion de Unbound con un archivo en ~/ansible/unbound.conf
---
- name:
hosts: all
remote_user: root
tasks:
- name: "Copiar unbound.conf"
copy:
src: /home/ansible/ansible/unbound.conf
dest: /etc/unbound/unbound.conf
- name: "Reiniciar unbound"
systemd_service:
name: unbound
state: restarted