RundeckでのSSH設定

# cp id_rsa /var/lib/rundeck/.ssh
  • 対象プロジェクトのresourcesファイルに以下を追加
ssh-authentication="privateKey"
ssh-keypath="/var/lib/rundeck/.ssh/id_rsa"
sh-key-passphrase-storage-path="keys/ssh_key_passphrase"

※Key Typeには「Password」を選択

# chmod 600 /var/lib/rundeck/var/storage/content/keys/ssh_key_passphrase

SSH Private Key Passphrase with a Job Option
http:// http://rundeck.org/docs/plugins-user-guide/ssh-plugins.html#ssh-private-key-passphrase-with-a-job-option