{"id":3918,"date":"2021-02-25T14:46:13","date_gmt":"2021-02-25T20:46:13","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3918"},"modified":"2024-02-06T21:03:16","modified_gmt":"2024-02-07T03:03:16","slug":"fatal-matrix2-host-com-unreachable-changedfalse","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/fatal-matrix2-host-com-unreachable-changedfalse\/","title":{"rendered":"fatal: [matrix2.host.com]: UNREACHABLE! => changed=false"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"123\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4-1024x123.png\" alt=\"\" class=\"wp-image-3920\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4-1024x123.png 1024w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4-300x36.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4-768x92.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4-1536x185.png 1536w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4-500x60.png 500w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2021\/02\/image-4.png 1595w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Error while attempting to run playbook<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">ansible-playbook -i inventory\/hosts setup.yml --tags=setup-system-user --ask-become-pass<\/pre>\n\n\n\n<p>Looks like the above issue is that Ansible is not able to authenticate with the server.  By default it looks to try and use ssh keys, but I don&#8217;t have any passwordless ssh keys set up for Ansible to use so it fails while attempting to connect.  The work around it to make sure you have sshpass installed and then specify &#8211;ask-pass to the end of the command.<\/p>\n\n\n\n<pre id=\"block-8f273396-838d-4e92-84f9-fa3829e93134\" class=\"wp-block-preformatted\">ansible-playbook -i inventory\/hosts setup.yml --tags=setup-system-user --ask-become-pass <strong>--ask-pass<\/strong><\/pre>\n\n\n\n<p>When the command runs it&#8217;ll ask you for the ssh password and then use that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ansible-playbook -i inventory\/hosts setup.yml &#8211;tags=setup-system-user &#8211;ask-become-pass Looks like the above issue is that Ansible is not able to authenticate with the server. By default it looks to try and use ssh keys, but I don&#8217;t have any passwordless ssh keys &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/fatal-matrix2-host-com-unreachable-changedfalse\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1185],"tags":[1193,1192,1186,238,500,221,227,1187,1194],"class_list":["post-3918","post","type-post","status-publish","format-standard","hentry","category-linux","category-matrix","tag-ansible","tag-false","tag-matrix","tag-passwordless","tag-server","tag-ssh","tag-sshpass","tag-synapse","tag-unreachable"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3918"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3918\/revisions"}],"predecessor-version":[{"id":3921,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3918\/revisions\/3921"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}