mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 05:07:06 +01:00
renamed customer user group
This commit is contained in:
1 parent
977c9ca44e
commit
b3de421b3a
4 files changed
+41
No files matched your search
@@ -5,6 +5,8 @@
|
||||
tags: common
|
||||
- name: hosts
|
||||
tags: hosts
|
||||
- name: ssh_config
|
||||
tags: ssh_config
|
||||
- name: wake_on_lan
|
||||
tags: wake_on_lan
|
||||
- name: matter-server
|
||||
|
||||
Executable
+17
@@ -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
|
||||
Executable
+21
@@ -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'
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
dest_folder: "/tmp/ans_repo"
|
||||
Reference in new issue
Block a user