ssh できないユーザーが所有する git ディレクトリがあります。私は現在sudo_user: user
、動作しているものを使用していますが、$HOME を正しく設定していないようです。ユーザー アカウントの ~/.ssh/known_hosts ファイルに github がありますが、~ssh_user/.ssh/known_hosts ファイルに (accept_hostkey=yes から) 追加されています。
http://docs.ansible.com/git_module.html
- hosts: myhost
sudo_user: user
tasks:
- name: git
git: repo=git@github.com:user/repo.git dest=/home/user/repo update=no accept_hostkey=yes
$HOME を正しく使用するように ansible に指示するために必要なことはありますか?
私は Joyent の Solaris で実行していますが、それがこの問題に直接当てはまるとは思いません。