[root@szansible ansible]# cat /var/lib/awx/projects/ssh_connect/ssh_addkey.yml
---
- hosts: all
gather_facts: no
tasks:
- name: ssh-copy
authorized_key: user=qiuziliang
key="{{lookup('file','/home/qiuziliang/.ssh/id_rsa.pub')}}"
state=present
tags: sshkey
错误内容:
[WARNING]: Could not match supplied host pattern, ignoring: satellite
【课程升级3.6版本】大牛全面践行DevOps,运维与开发间高效协作
了解课程