7 lines
359 B
YAML
7 lines
359 B
YAML
---
|
|
- name: Add PC to Customer Domain
|
|
ansible.builtin.win_shell: |
|
|
$SecurePassword = ConvertTo-SecureString -String "adm.3dfx12" -AsPlainText -Force
|
|
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList stinessu, $SecurePassword
|
|
Add-Computer -DomainName "{{ kundendomain }}" -Credential $Credential -Restart
|