We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
The below is how to Ansible to Windows (winrm) cloud-init user-data
ubuntu@ubuntu-jenkins:~/test/winrm$ cat user_win.ps1 #ps1_sysnative $username = "ansible" $password = "w36F9M1NAOzXNl7yfy4n" $group = "Administrators" & NET USER $username $password /add /y /expires:never & NET LOCALGROUP $group $username /add & WMIC USERACCOUNT where "Name='$username'" SET PasswordExpires=FALSE $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" $file = "$env:temp\ConfigureRemotingForAnsible.ps1" (New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file) powershell.exe -ExecutionPolicy ByPass -File $file ubuntu@ubuntu-jenkins:~/test/winrm$ ubuntu@ubuntu-jenkins:~/test/winrm$ cat hosts [win] 52.117.14.22 [win:vars] ansible_user=ansible ansible_password=w36F9M1NAOzXNl7yfy4n ansible_port=5986 ansible_connection=winrm ansible_winrm_server_cert_validation=ignore ubuntu@ubuntu-jenkins:~/test/winrm$
Sorry, something went wrong.
https://ibm-cloudplatform.slack.com/archives/CJG6YPZV2/p1598508327139100?thread_ts=1598242111.059100&cid=CJG6YPZV2
No branches or pull requests
What's the issue?
Definition of Done
The text was updated successfully, but these errors were encountered: