ansible添加公钥

tasks:
– name: Add RSA key to the remote host
authorized_key: user=’root’ key=”{{ lookup(‘file’, ‘~/.ssh/id_rsa.pub’) }}”

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *