cleans up support scripts

This commit is contained in:
2025-10-29 19:48:30 +01:00
parent f37bd556c3
commit dd1306766c
7 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
---
- name: Ensure cit user
hosts: all
roles:
- cit_user
- name: Set the authorized_keys of the cit user to the authorized_keys of the root user
hosts: all
tasks:
- name: Ensure cit user .ssh directory
ansible.builtin.file:
path: /home/cit/.ssh
state: directory
owner: cit
group: cit
mode: "0700"
- name: Copy the root users authorized_keys for the cit user
ansible.builtin.copy:
src: /root/.ssh/authorized_keys
remote_src: true
dest: /home/cit/.ssh/authorized_keys
owner: cit
group: cit
mode: "0600"