server-setup/tasks/ssh-keys.yml

28 lines
1.1 KiB
YAML
Raw Normal View History

2022-03-16 12:59:37 +01:00
---
- name: Ensure the .ssh folder is present and has the right permissions
ansible.builtin.file:
path: ~/.ssh
mode: 0700
state: directory
2024-08-08 23:28:29 +02:00
- name: Ensure the "bryanpedini@bryanbox.home.infra.bjphoster.cloud" key is present
2022-03-16 12:59:37 +01:00
ansible.builtin.lineinfile:
path: ~/.ssh/authorized_keys
2022-03-17 11:53:18 +01:00
mode: 0600
2024-08-08 23:28:29 +02:00
value: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuad05527ZlLMfVh9fOlDapVBdQ3dEAyoyZfNvoxqBQ bryanpedini@bryanbox.home.infra.bjphoster.cloud
state: present
create: true
2024-10-02 14:42:35 +02:00
- name: Ensure the "bryanpedini@acerlap.home.infra.bjphoster.cloud" key is present
ansible.builtin.lineinfile:
path: ~/.ssh/authorized_keys
mode: 0600
value: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG91LScq6vrfBAKw0fph736ooWTqxsJkC6mK+UOAtmf9 bryanpedini@acerlap.home.infra.bjphoster.cloud
state: present
create: true
2024-09-26 14:10:05 +02:00
- name: Ensure the "bryanpedini@bryanvostro.wimore.it" key is present
ansible.builtin.lineinfile:
path: ~/.ssh/authorized_keys
mode: 0600
value: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMUyzqBkMgVhDLfbegGaBLyWDyd7jNcoXvy1EagYXzDz bryanpedini@bryanvostro.wimore.it
state: present
create: true