Files
windows-ansible/ansible/roles/win_proxy/tasks/dns.yml
T

8 lines
229 B
YAML

---
- 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