mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-05-04 19:39:50 +02:00
renamed customer user group
This commit is contained in:
@@ -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
|
||||||
|
|||||||
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