ansible-edda/playbooks/roles/services/setup/system/tasks/include/nameserver.yml

17 lines
495 B
YAML
Raw Normal View History

2022-12-18 23:43:40 +01:00
---
2022-12-12 23:49:20 +01:00
- name: "nameserver : fetch valkyrie's resolv.conf"
2022-12-10 21:39:04 +01:00
ansible.builtin.fetch:
src: "/etc/resolv.conf"
2022-12-18 19:49:55 +01:00
dest: "./files/services/setup/system/nameserver/"
2022-12-10 21:39:04 +01:00
flat: true
when:
ansible_hostname == "valkyrie"
2022-12-12 23:49:20 +01:00
- name: "nameserver : copy valkyrie's resolv.conf to other hosts"
2022-12-10 21:39:04 +01:00
ansible.builtin.copy:
2022-12-18 19:49:55 +01:00
src: "files/services/setup/system/nameserver/resolv.conf"
2022-12-18 00:05:58 +01:00
dest: "{{ services_root_directory }}/valkyrie-resolv.conf"
2022-12-18 23:00:28 +01:00
mode: 0644
2022-12-10 21:39:04 +01:00
when:
ansible_hostname != "valkyrie"