ansible 172.20.70.50 -m authorized_key -a "user=root state=present key"{{lookup('file','/root/.ssh/id_rsa.pub')}}"" -K -S
-K -S:以root身份运行
2023-10-28 21:53:58
ansible 172.20.70.50 -m authorized_key -a "user=root state=present key"{{lookup('file','/root/.ssh/id_rsa.pub')}}"" -K -S
-K -S:以root身份运行