Added new machine: inko, personalized root yaml files for specific host instead of group

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
main
TuDatTr 2023-11-05 20:33:59 +01:00
parent 3f88065da4
commit c6df5f904d
10 changed files with 38 additions and 15 deletions

View File

@ -1,6 +1,6 @@
---
- name: Set up Servers
hosts: server
hosts: aya01
gather_facts: yes
roles:
- role: common

View File

@ -6,7 +6,7 @@ timezone: Europe/Berlin
rclone_config: "/root/.config/rclone/"
puid: "1000"
pgid: "1000"
pk_path: "/mnt/veracrypt1/genesis"
pk_path: "/media/veracrypt1/genesis"
pubkey: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqc9fnzfCz8fQDFzla+D8PBhvaMmFu2aF+TYkkZRxl9 tuan@genesis-2022-01-20"
@ -16,7 +16,7 @@ remote_domain: tudattr.dev
remote_subdomains: "www,plex,status,tautulli"
backup_domain: seyshiro.de
backup_subdomains: "hass,qbit,zm,"
#
#
# aya01
#
@ -44,6 +44,13 @@ naruto_ip: "192.168.20.13"
pi_host: "pi"
pi_ip: "192.168.20.11"
#
# inko
#
inko_host: "inko"
inko_ip: "192.168.20.14"
#
# Used to download for git releases
#

10
host_vars/inko.yml Normal file
View File

@ -0,0 +1,10 @@
ansible_user: "{{ user }}"
ansible_host: 192.168.20.14
ansible_port: 22
ansible_ssh_private_key_file: '{{ pk_path }}'
ansible_become_pass: '{{ vault.inko.sudo }}'
host:
ip: "{{ ansible_host }}"
fstab:
mergerfs:

View File

@ -17,5 +17,3 @@ host:
# - "{{}}"
fstab:
mergerfs:
samba:
password: "{{ vault.aya01.samba.password }}"

View File

@ -1,6 +0,0 @@
ansible_user: vagrant
ansible_host: 127.0.0.1
ansible_port: 2222
ansible_ssh_private_key_file: .vagrant/machines/vagrant/virtualbox/private_key
ost_ip: "{{ ansible_host }}"

14
inko.yml Normal file
View File

@ -0,0 +1,14 @@
---
- name: Set up Servers
hosts: inko
gather_facts: yes
roles:
- role: common
tags:
- common
- role: power_management
tags:
- power_management
- role: node_exporter
tags:
- node_exporter

View File

@ -1,6 +1,6 @@
---
- name: Set up Servers
hosts: vps
hosts: mii
gather_facts: yes
roles:
- role: common

View File

@ -1,6 +1,6 @@
---
- name: Set up Servers
hosts: nas
hosts: naruto
gather_facts: yes
roles:
- role: common

2
pi.yml
View File

@ -1,6 +1,6 @@
---
- name: Set up Raspberry Pis
hosts: raspberry
hosts: pi
gather_facts: yes
roles:
- role: common

View File

@ -26,6 +26,7 @@ scrape_configs:
- targets: ['{{ mii_ip }}:{{node_exporter.port}}']
- targets: ['{{ pi_ip }}:{{node_exporter.port}}']
- targets: ['{{ naruto_ip }}:{{node_exporter.port}}']
- targets: ['{{ inko_ip }}:{{node_exporter.port}}']
- job_name: 'mikrotik'
static_configs:
- targets:
@ -43,4 +44,3 @@ scrape_configs:
- job_name: 'SMART'
static_configs:
- targets: ['{{ aya01_ip }}:{{smart_exporter.port}}']
- targets: ['{{ naruto_ip }}:{{smart_exporter.port}}']