diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-17 16:23:15 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-17 16:23:15 +0200 |
| commit | 9d59abaaab060521ba54d1d768ed3e22513ce398 (patch) | |
| tree | f600b2fdfed83179f158dc4b79ae81da76d49c9d /roles/cgit/tasks | |
| parent | 28d802e0ebcf6d192ac398a6b64be2760d7ba2a4 (diff) | |
Fix pushing to cgit locally
Diffstat (limited to 'roles/cgit/tasks')
| -rw-r--r-- | roles/cgit/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml index c5eeea3b..a2436b50 100644 --- a/roles/cgit/tasks/main.yml +++ b/roles/cgit/tasks/main.yml @@ -23,6 +23,24 @@ home: "{{ cgit_repos_dir }}" create_home: true system: true + password: "*" + +- name: "Create git user .ssh directory" + become: true + ansible.builtin.file: + path: "{{ cgit_repos_dir }}/.ssh" + state: directory + owner: "{{ cgit_ssh_user }}" + group: "{{ cgit_ssh_user }}" + mode: "0700" + +- name: "Deploy authorized_keys" + become: true + ansible.builtin.authorized_key: + user: "{{ cgit_ssh_user }}" + key: "{{ item }}" + state: present + loop: "{{ user_public_keys }}" - name: "Create repos directory" become: true |
