mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 20:07:21 +00:00
8 lines
229 B
YAML
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 |