ansible-edda/playbooks/tasks/services/setup/02-nameserver.yml

14 lines
367 B
YAML
Raw Normal View History

2022-10-06 22:05:07 +02:00
- name: Fetch valkyrie's resolv.conf
fetch:
src: "/etc/resolv.conf"
dest: "./filesystem/tmp/"
when:
ansible_hostname == 'valkyrie'
- name: Copy valkyrie's resolv.conf to yggdrasil
copy:
src: "./filesystem/tmp/valkyrie/etc/resolv.conf"
dest: "/var/lib/{{ ansible_hostname }}/valkyrie-resolv.conf"
when:
ansible_hostname == 'yggdrasil'