renamed customer user group

This commit is contained in:
ladislav.dusa
2025-04-14 20:55:20 +02:00
parent 977c9ca44e
commit b3de421b3a
4 changed files with 41 additions and 0 deletions

View File

@ -5,6 +5,8 @@
tags: common tags: common
- name: hosts - name: hosts
tags: hosts tags: hosts
- name: ssh_config
tags: ssh_config
- name: wake_on_lan - name: wake_on_lan
tags: wake_on_lan tags: wake_on_lan
- name: matter-server - name: matter-server

17
roles/ssh_config/files/config Executable file
View File

@ -0,0 +1,17 @@
Host m-server
HostName m-server.home.lan
Host rpi5
HostName rpi5.home.lan
Host rack
HostName rack.home.lan
Host nas
HostName nas.home.lan
User admin
Host *
User jd
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no

21
roles/ssh_config/tasks/main.yml Executable file
View File

@ -0,0 +1,21 @@
- name: SSH config Setup
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
block:
- name: Upload config
ansible.builtin.copy:
src: config
dest: /home/jd/.ssh/config
remote_src: true
mode: '0600'
owner: jd
group: jd
when: inventory_hostname != 'nas.home.lan'
- name: Upload config
ansible.builtin.copy:
src: config
dest: /root/.ssh/config
remote_src: true
mode: '0600'
owner: root
group: root
when: inventory_hostname != 'nas.home.lan'

1
roles/ssh_config/vars/main.yml Executable file
View File

@ -0,0 +1 @@
dest_folder: "/tmp/ans_repo"