windows: set hostname
This commit is contained in:
parent
66298da9c7
commit
e30fcf0bd4
1 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
- name: Set hostname
|
||||
win_hostname:
|
||||
name: "{{ dns_name | split('.') | first }}"
|
||||
register: result
|
||||
|
||||
- win_reboot:
|
||||
when: result.reboot_required
|
||||
|
||||
- name: Set up interfaces
|
||||
include_tasks: interface.yml
|
||||
loop: "{{ interfaces }}"
|
||||
|
|
Loading…
Reference in a new issue