diff --git a/ansible/roles/sftp/tasks/common.yaml b/ansible/roles/sftp/tasks/common.yaml index 4a3821a..f1245ba 100644 --- a/ansible/roles/sftp/tasks/common.yaml +++ b/ansible/roles/sftp/tasks/common.yaml @@ -64,6 +64,23 @@ # force: true # 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 when: 'os_flavor == "freebsd"' diff --git a/nix/configuration/roles/kodi/default.nix b/nix/configuration/roles/kodi/default.nix index 2018c3d..c2249a4 100644 --- a/nix/configuration/roles/kodi/default.nix +++ b/nix/configuration/roles/kodi/default.nix @@ -68,6 +68,12 @@ group = "kodi"; mode = "0755"; } + { + directory = ".kodi"; + user = "kodi"; + group = "kodi"; + mode = "0755"; + } ]; }; };