build-all

This commit is contained in:
2026-05-19 16:38:35 +02:00
parent 7804f08a7c
commit aff852dab3
8 changed files with 181 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
Host m-server
HostName m-server.home.lan
Host rpi5
HostName rpi5.home.lan
Host rack
HostName rack.home.lan
Host amd
HostName amd.home.lan
Host nas
HostName nas.home.lan
User admin
Host router
HostName router.home.lan
User root
Host external
HostName 193.168.144.164
User root
Host *
User jd
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
+22
View File
@@ -0,0 +1,22 @@
- name: SSH config Setup
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
block:
- name: Include vault
ansible.builtin.include_vars:
file: jaydee.yml
- name: Upload config
ansible.builtin.copy:
src: config
dest: /home/jd/.ssh/config
mode: '0600'
owner: jd
group: jd
when: inventory_hostname != 'nas.home.lan'
- name: Upload config
ansible.builtin.copy:
src: config
dest: /root/.ssh/config
mode: '0600'
owner: root
group: root
when: inventory_hostname != 'nas.home.lan'
+1
View File
@@ -0,0 +1 @@
dest_folder: "/tmp/ans_repo"