aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-02 11:49:14 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-01-02 11:49:14 +0100
commit8add0d08a44a726463970127f5ed13348b955770 (patch)
tree64c81e0bef5cda6b981485d7ff445a1a74909ff6
parent1dcac3ff16b9d2d8c0d637d55d75239d86f1f11d (diff)
downloadinfrastructure-8add0d08a44a726463970127f5ed13348b955770.tar.gz
feat: load localhost variable for workstation playbook
-rw-r--r--host_vars/ws-work01.yml4
-rw-r--r--site.workstation.yml3
2 files changed, 7 insertions, 0 deletions
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
remember that computers suck.