Add neelix public key to sftp server.

This commit is contained in:
Tom Alexander 2025-01-21 21:23:21 -05:00
parent 48c5aebd82
commit a739728d41
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 23 additions and 0 deletions

View File

@ -64,6 +64,23 @@
# force: true # force: true
# diff: false # diff: false
- name: Create directories
file:
name: "{{ item }}"
state: directory
mode: 0700
owner: nochainstounlock
group: nochainstounlock
loop:
- /home/nochainstounlock/.ssh
- name: Set authorized keys
authorized_key:
user: nochainstounlock
key: |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMrjXsXjtxEm47XnRZfo67kJULoc0NBLrB0lPYFiS2Ar kodi@neelix
exclusive: true
- import_tasks: tasks/freebsd.yaml - import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"' when: 'os_flavor == "freebsd"'

View File

@ -68,6 +68,12 @@
group = "kodi"; group = "kodi";
mode = "0755"; mode = "0755";
} }
{
directory = ".kodi";
user = "kodi";
group = "kodi";
mode = "0755";
}
]; ];
}; };
}; };