使用ansible的authorieed_key推送用户的ssh-key时,出现问题:
1.u'{"failed": {"172.16.30.138": "Aborting, target uses selinux but python bindings (libselinux-python) aren\'t installed!"}
解决方法:在被管理的主机上安装libselinux
2.Failed to lookup user test_mj: \'getpwnam(): name not found: test_mj\
这个原因是推送秘钥的时候,找不到用户, 可以再次执行一下authorieed_key这个模块就好了