Add dns record for choco server to proxy

This commit is contained in:
abrown38 committed 2024-09-02 13:19:29 +01:00
1 parent 85b4db3d04
commit 93022add31
4 files changed
+21 -1

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
---
- name: Create chocolatey server dns record
ansible.builtin.lineinfile:
path: /etc/hosts
regexp: '{{ choco_hostname }}$'
line: "{{ hostvars[choco_server].ansible_host }} {{ choco_hostname }}"
state: present