13 lines
460 B
YAML
13 lines
460 B
YAML
---
|
|
- name: Ensure the .ssh folder is present and has the right permissions
|
|
ansible.builtin.file:
|
|
path: ~/.ssh
|
|
mode: 0700
|
|
state: directory
|
|
- name: Ensure the "bryanpedini@bryanbox.home.bjphoster.cloud" key is present
|
|
ansible.builtin.lineinfile:
|
|
path: ~/.ssh/authorized_keys
|
|
mode: 0600
|
|
value: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF6KIOHTpybQPsEwCftOr9+43s1Br/PNjcGg24NboVh2 bryanpedini@bryanbox.home.bjphoster.cloud
|
|
create: true
|