ansible 拷贝密钥

playbook:

	---
  - name: ansible playbook
	hosts: all
	remote_user: root
	become: yes
	tasks:
	  - name: "拷贝公钥"
	  - authorized_key:
	  		user: root
			key: "{{lookup('file', '/root/.ssh/id_rsa.pub')}}"
	        state: present