Ansible synchronize prompts passphrase even if already entered at the beginning

后端 未结 5 1917
青春惊慌失措
青春惊慌失措 2021-02-06 06:28

The synchronize module of Ansible (v1.6.5) prompts for the passphrase (Enter passphrase for key) even though I already entered it at the beginning of running th

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 07:12

    I tried using the copy module but it takes way too much time. So to make the synchronize module works, I will do the following. It is not perfect but at least it works.

    1. change the ownership and permissions of the destination remote folder to the user I am using

    2. use synchronize without sudo

    3. set back the ownership and permissions of the destination remote to what I wanted before

提交回复
热议问题