{"id":6533,"date":"2021-06-17T08:52:13","date_gmt":"2021-06-17T08:52:13","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=6533"},"modified":"2021-06-17T08:52:13","modified_gmt":"2021-06-17T08:52:13","slug":"ansible-errors-solutions-with-windows-server","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/","title":{"rendered":"Ansible Errors &#038; Solutions with Windows Server"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>PS C:\\Users\\rajesh> (New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)\r\nException calling \"DownloadFile\" with \"2\" argument(s): \"The request was aborted: Could not create SSL\/TLS secure\r\nchannel.\"\r\nAt line:1 char:1\r\n+ (New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) &#91;], MethodInvocationException\r\n    + FullyQualifiedErrorId : WebException\r\n\r\nPS C:\\Users\\rajesh> &#91;Net.ServicePointManager]::SecurityProtocol = &#91;Net.SecurityProtocolType]::Tls12\r\nPS C:\\Users\\rajesh> (New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)\r\nPS C:\\Users\\rajesh>\r\n\r\n&#91;Net.ServicePointManager]::SecurityProtocol = &#91;Net.SecurityProtocolType]::Tls12\r\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@master files]# sudo pip install markupsafe\r\nTraceback (most recent call last):\r\n  File \"\/bin\/pip\", line 9, in &lt;module>\r\n    load_entry_point('pip==21.1.2', 'console_scripts', 'pip')()\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pkg_resources.py\", line 378, in load_entry_point\r\n    return get_distribution(dist).load_entry_point(group, name)\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pkg_resources.py\", line 2566, in load_entry_point\r\n    return ep.load()\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pkg_resources.py\", line 2260, in load\r\n    entry = __import__(self.module_name, globals(),globals(), &#91;'__name__'])\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pip\/__init__.py\", line 1, in &lt;module>\r\n    from typing import List, Optional\r\nImportError: No module named typing\r\n&#91;root@master files]# sudo pip install xmltodict\r\nTraceback (most recent call last):\r\n  File \"\/bin\/pip\", line 9, in &lt;module>\r\n    load_entry_point('pip==21.1.2', 'console_scripts', 'pip')()\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pkg_resources.py\", line 378, in load_entry_point\r\n    return get_distribution(dist).load_entry_point(group, name)\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pkg_resources.py\", line 2566, in load_entry_point\r\n    return ep.load()\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pkg_resources.py\", line 2260, in load\r\n    entry = __import__(self.module_name, globals(),globals(), &#91;'__name__'])\r\n  File \"\/usr\/lib\/python2.7\/site-packages\/pip\/__init__.py\", line 1, in &lt;module>\r\n    from typing import List, Optional\r\nImportError: No module named typing<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@master ~]# ansible --version\r\n\/usr\/lib\/python2.7\/site-packages\/ansible\/parsing\/vault\/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.\r\n  from cryptography.exceptions import InvalidSignature\r\n\r\nSolution - https:\/\/stackoverflow.com\/questions\/67278017\/pip-command-line-importerror-no-module-named-typing<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@master ~]# ansible all -i 20.81.234.228, -m win_ping\r\n\/usr\/lib\/python2.7\/site-packages\/ansible\/parsing\/vault\/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.\r\n  from cryptography.exceptions import InvalidSignature\r\n20.81.234.228 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"Failed to connect to the host via ssh: ssh: connect to host 20.81.234.228 port 22: Connection timed out\",\r\n    \"unreachable\": true\r\n}\r\n&#91;root@master ~]#<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>\r\n&#91;root@master ~]# ansible all -i 20.81.234.228, -m win_ping\r\n\/usr\/lib\/python2.7\/site-packages\/ansible\/parsing\/vault\/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.\r\n  from cryptography.exceptions import InvalidSignature\r\n20.81.234.228 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"Failed to connect to the host via ssh: ssh: connect to host 20.81.234.228 port 22: Connection timed out\",\r\n    \"unreachable\": true\r\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@master ~]# ansible all -i 20.81.234.228, -m win_ping -c winrm -u rajesh\r\n\/usr\/lib\/python2.7\/site-packages\/ansible\/parsing\/vault\/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.\r\n  from cryptography.exceptions import InvalidSignature\r\n20.81.234.228 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"ssl: auth method ssl requires a password\",\r\n    \"unreachable\": true\r\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@master ~]# ansible all -i 20.81.234.228, -m win_ping -c winrm -u rajesh -e 'ansible_password=Ghs6834&amp;dhks'\r\n\/usr\/lib\/python2.7\/site-packages\/ansible\/parsing\/vault\/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.\r\n  from cryptography.exceptions import InvalidSignature\r\n20.81.234.228 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"ssl: HTTPSConnectionPool(host='20.81.234.228', port=5986): Max retries exceeded with url: \/wsman (Caused by SSLError(SSLError(1, u'&#91;SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)'),))\",\r\n    \"unreachable\": true\r\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@master ~]# ansible all -i 20.81.234.228, -m win_ping -c winrm -u rajesh -e 'ansible_password=Ghs6834&amp;dhks ansible_port=5985'\r\n\/usr\/lib\/python2.7\/site-packages\/ansible\/parsing\/vault\/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.\r\n  from cryptography.exceptions import InvalidSignature\r\n20.81.234.228 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"plaintext: the specified credentials were rejected by the server\",\r\n    \"unreachable\": true\r\n}\r\n\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6533","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ansible Errors &amp; Solutions with Windows Server - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ansible Errors &amp; Solutions with Windows Server - scmGalaxy\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-17T08:52:13+00:00\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"Ansible Errors &#038; Solutions with Windows Server\",\"datePublished\":\"2021-06-17T08:52:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/\"},\"wordCount\":6,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/\",\"name\":\"Ansible Errors & Solutions with Windows Server - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2021-06-17T08:52:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ansible-errors-solutions-with-windows-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ansible Errors &#038; Solutions with Windows Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ansible Errors & Solutions with Windows Server - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/","og_locale":"en_US","og_type":"article","og_title":"Ansible Errors & Solutions with Windows Server - scmGalaxy","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/","og_site_name":"scmGalaxy","article_published_time":"2021-06-17T08:52:13+00:00","author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"Ansible Errors &#038; Solutions with Windows Server","datePublished":"2021-06-17T08:52:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/"},"wordCount":6,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/","name":"Ansible Errors & Solutions with Windows Server - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2021-06-17T08:52:13+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ansible-errors-solutions-with-windows-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Ansible Errors &#038; Solutions with Windows Server"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=6533"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6533\/revisions"}],"predecessor-version":[{"id":6534,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6533\/revisions\/6534"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=6533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=6533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=6533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}