mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 12:37:21 +00:00
Add dns record for choco server to proxy
This commit is contained in:
1 parent
85b4db3d04
commit
93022add31
4 files changed
+21
-1
No files matched your search
@@ -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
|
||||
@@ -6,6 +6,10 @@
|
||||
run_once: true
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Import dns.yml
|
||||
import_tasks:
|
||||
file: dns.yml
|
||||
|
||||
- name: Create group
|
||||
ansible.builtin.group:
|
||||
name: "{{ squid_group }}"
|
||||
|
||||
Reference in new issue
Block a user