Using ansible with windows

163 views
Skip to first unread message

David Teague

unread,
Jun 3, 2015, 1:45:04 PM6/3/15
to ansible...@googlegroups.com
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.



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&amp;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="&#x2713;" /></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

Michael Legleux

unread,
Jun 3, 2015, 2:26:31 PM6/3/15
to ansible...@googlegroups.com
Looks your're trying to run the html page on github.
Try saving and running this link:
Reply all
Reply to author
Forward
0 new messages