Ansible synchronize prompts passphrase even if already entered at the beginning

后端 未结 5 1924
青春惊慌失措
青春惊慌失措 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:22

    Disabling tty_tickets in /etc/sudoers on the remote machine fixes this problem (at the cost of slightly reduced security). E.g.,

    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # Please consider adding local content in /etc/sudoers.d/ instead of
    # directly modifying this file.
    #
    # See the man page for details on how to write a sudoers file.
    #
    Defaults        env_reset,!tty_tickets
    # ...
    

提交回复
热议问题