From 8add0d08a44a726463970127f5ed13348b955770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 2 Jan 2023 11:49:14 +0100 Subject: feat: load localhost variable for workstation playbook --- host_vars/ws-work01.yml | 4 ++++ site.workstation.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/host_vars/ws-work01.yml b/host_vars/ws-work01.yml index 7a78ae9..fce88d3 100644 --- a/host_vars/ws-work01.yml +++ b/host_vars/ws-work01.yml @@ -1,3 +1,7 @@ --- sshd_enable_x11_forwarding: true + +resolv_dns_servers: + - ip: 8.8.8.8 + file: "{{ resolv_configuration_file }}.tail" diff --git a/site.workstation.yml b/site.workstation.yml index 07911d1..387b684 100644 --- a/site.workstation.yml +++ b/site.workstation.yml @@ -23,6 +23,9 @@ - name: retrieve installed packages ansible.builtin.package_facts: register: package_facts + - name: include localhost variable + ansible.builtin.include_vars: + file: "host_vars/{{ ansible_hostname }}.yml" roles: - role: _workstation/basetools -- cgit v1.2.3