{"id":7768,"date":"2015-10-23T20:23:07","date_gmt":"2015-10-23T20:23:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/23\/ansible-prompts-password-when-using-synchronize-open-source-projects-ansible-ansible\/"},"modified":"2015-10-23T20:23:07","modified_gmt":"2015-10-23T20:23:07","slug":"ansible-prompts-password-when-using-synchronize-open-source-projects-ansible-ansible","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/23\/ansible-prompts-password-when-using-synchronize-open-source-projects-ansible-ansible\/","title":{"rendered":"Ansible prompts password when using synchronize-open source projects ansible\/ansible"},"content":{"rendered":"<p>I&#8217;m using ansible in the following way:<\/p>\n<p><code>ansible-playbook -f 1 my-play-book.yaml --ask-pass --ask-sudo-pass<\/code><\/p>\n<p>After this I&#8217;m asked to enter the ssh &amp; sudo passwords (same password for both).<\/p>\n<p>Inside my playbook file I&#8217;m using synchronize task:<\/p>\n<p><code>synchronize: mode=push src=rel\/path\/myfolder\/ dest=\/abs\/path\/myfolder\/<\/code><\/p>\n<p>For each host, I&#8217;m prompted to enter the ssh password of the remote host (the same that I entered in the beginning of the playbook run)<\/p>\n<p>How can I avoid entering the password when executing synchronize task?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using ansible in the following way: ansible-playbook -f 1 my-play-book.yaml &#8211;ask-pass &#8211;ask-sudo-pass After this I&#8217;m asked to enter the ssh &amp; sudo passwords (same password for both). Inside my playbook file I&#8217;m using synchronize task: synchronize: mode=push src=rel\/path\/myfolder\/ dest=\/abs\/path\/myfolder\/ For each host, I&#8217;m prompted to enter the ssh password of the remote host (the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7768","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7768"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7768\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}