mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 13:07:21 +00:00
Add tags to join tasks
This commit is contained in:
1 parent
9de40b7d93
commit
2f8a3886db
1 file changed
+3
@@ -3,6 +3,7 @@
|
||||
tags: join_domain
|
||||
block:
|
||||
- name: Set DC01 and DC02 as DNS servers
|
||||
tags: set_dns
|
||||
vars:
|
||||
dc01_dns: "{{ os_project }}-{{ win_project }}-dc01"
|
||||
dc02_dns: "{{ os_project }}-{{ win_project }}-dc02"
|
||||
@@ -13,6 +14,7 @@
|
||||
- "{{ hostvars[dc02_dns].ansible_host }}"
|
||||
|
||||
- name: membership | Joining Fileserver, Choco and WSUS machines to domain
|
||||
tags: join_servers
|
||||
microsoft.ad.membership:
|
||||
dns_domain_name: "{{ win_project }}.loc"
|
||||
domain_admin_user: "Administrator@{{ win_project }}.loc"
|
||||
@@ -23,6 +25,7 @@
|
||||
when: inventory_hostname in groups['meta-type_server']
|
||||
|
||||
- name: Joining Client machines to domain
|
||||
tags: join_clients
|
||||
microsoft.ad.membership:
|
||||
dns_domain_name: "{{ win_project }}.loc"
|
||||
domain_admin_user: "Administrator@{{ win_project }}.loc"
|
||||
|
||||
Reference in new issue
Block a user