mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:37:21 +00:00
set DNS server again in always block
This commit is contained in:
1 parent
92491b6337
commit
831bff514d
1 file changed
+2
-2
@@ -66,6 +66,7 @@
|
||||
state: domain_controller
|
||||
register: dc02_promotion
|
||||
|
||||
always:
|
||||
- name: Setting DNS Servers (Secondary DC)
|
||||
vars:
|
||||
dc01_dns: "{{ os_project }}-{{ win_project }}-dc01"
|
||||
@@ -74,8 +75,7 @@
|
||||
dns_servers:
|
||||
- "127.0.0.1"
|
||||
- "{{ hostvars[dc01_dns].ansible_host }}"
|
||||
|
||||
always:
|
||||
|
||||
- name: Rebooting DC02 post promotion to domain controller
|
||||
win_reboot:
|
||||
reboot_timeout_sec: 1200
|
||||
|
||||
Reference in new issue
Block a user