mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-31 06:30:15 +00:00
fix hard coded values
This commit is contained in:
1 parent
4caa03f13b
commit
5ff826b3a6
1 file changed
+8
-5
@@ -30,11 +30,13 @@
|
|||||||
register: dc01_promotion
|
register: dc01_promotion
|
||||||
|
|
||||||
- name: Setting DNS Servers (Primary DC)
|
- name: Setting DNS Servers (Primary DC)
|
||||||
|
vars:
|
||||||
|
dc02_dns: "{{ os_project }}-{{ win_project }}-dc02"
|
||||||
win_dns_client:
|
win_dns_client:
|
||||||
adapter_names: "*"
|
adapter_names: "*"
|
||||||
ipv4_addresses:
|
dns_servers:
|
||||||
- "127.0.0.1"
|
- "127.0.0.1"
|
||||||
- "{{ hostvars['eidf075-dev-dc02'].ansible_host }}"
|
- "{{ hostvars[dc02_dns].ansible_host }}"
|
||||||
|
|
||||||
- name: Rebooting DC01 post promotion to domain controller
|
- name: Rebooting DC01 post promotion to domain controller
|
||||||
win_reboot:
|
win_reboot:
|
||||||
@@ -46,11 +48,12 @@
|
|||||||
tags: promote_dc02
|
tags: promote_dc02
|
||||||
block:
|
block:
|
||||||
- name: Setting DNS Servers (Secondary DC)
|
- name: Setting DNS Servers (Secondary DC)
|
||||||
tags: promote_dc01
|
vars:
|
||||||
|
dc01_dns: "{{ os_project }}-{{ win_project }}-dc01"
|
||||||
win_dns_client:
|
win_dns_client:
|
||||||
adapter_names: "*"
|
adapter_names: "*"
|
||||||
ipv4_addresses:
|
dns_servers:
|
||||||
- "{{ hostvars['eidf075-dev-dc01'].ansible_host }}"
|
- "{{ hostvars[dc01_dns].ansible_host }}"
|
||||||
- "127.0.0.1"
|
- "127.0.0.1"
|
||||||
|
|
||||||
- name: Promote DC02 to domain controller
|
- name: Promote DC02 to domain controller
|
||||||
|
|||||||
Reference in new issue
Block a user