Hi, I am following the guide to get windows prepared to be managed by ansible. However I am getting errros in powershell with the provided script.
https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 Errors - At C:\Ansiable\ConfigureRemotingForAnsible.ps1:21 char:467 + ... m/u/1507452?v=3&s=400" name="twitter:image:src" /> + ~ Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:22 char:167 + ... m/u/1507452?v=3&s=400" property="og:image" /><meta content="ansible/ansible" ... + ~ Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:91 char:277 + ... hidden" value="✓" /></div> + ~ Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:10 + --><span class="path-divider">/</span><!-- + ~ Missing expression after unary operator '--'. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:11 + --><span class="path-divider">/</span><!-- + ~ Missing file specification after redirection operator. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:11 + --><span class="path-divider">/</span><!-- + ~ The '<' operator is reserved for future use. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:181 char:17 + --><span class="path-divider">/</span><!-- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unexpected token 'class="path-divider">/</span><!--' in expression or statement. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:10 + --><strong><a href="/ansible/ansible" data-pjax="#js-repo-pjax-container" ... + ~ Missing expression after unary operator '--'. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:11 + --><strong><a href="/ansible/ansible" data-pjax="#js-repo-pjax-container" ... + ~ Missing file specification after redirection operator. At C:\Ansiable\ConfigureRemotingForAnsible.ps1:182 char:11 + --><strong><a href="/ansible/ansible" data-pjax="#js-repo-pjax-container" ... + ~ The '<' operator is reserved for future use. Not all parse errors were reported. Correct the reported errors and try again. + CategoryInfo : ParserError: (:) [], ParseException + FullyQualifiedErrorId : AmpersandNotAllowed I have powershell 3.0 installed, is there and updated script some where? Thanks David -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d8eed6c7-c613-494b-98fc-6e7635949d0c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
