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

15 lines
467 B
YAML
Raw Normal View History

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"
dest: "./files/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:
src: "../../../files/setup_system/nameserver/resolv.conf"
2022-12-18 00:05:58 +01:00
dest: "{{ services_root_directory }}/valkyrie-resolv.conf"
2022-12-10 21:39:04 +01:00
when:
ansible_hostname != "valkyrie"