Initial commit of ansible-project
This commit is contained in:
5
add_keys.yaml
Normal file
5
add_keys.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
- name: Add SSH public key to authorized_keys
|
||||
authorized_key:
|
||||
user: jacques # User on the remote VM
|
||||
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}" # Path to your local public key
|
||||
state: present
|
||||
Reference in New Issue
Block a user