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

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'