fixed the key and got it woking
This commit is contained in:
1 parent
928d498706
commit
eb13ba8fcd
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Add ssh key
|
||||
hosts: "killer1"
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
@@ -12,7 +12,7 @@
|
||||
ansible.posix.authorized_key:
|
||||
user: "{{ lookup('env', 'USER') }}"
|
||||
state: present
|
||||
key: "/root/.ssh/id_rsa.pub"
|
||||
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
|
||||
|
||||
- name: Change sudoers file
|
||||
ansible.builtin.lineinfile:
|
||||
|
||||
Reference in new issue
Block a user