vars/main.yml in main_template.yml umbenannt
SSID ist jetzt eine eigene Variable.
This commit is contained in:
12
ansible.cfg
Normal file
12
ansible.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
[defaults]
|
||||
inventory = inventory.yml
|
||||
interpreter_python = auto_silent
|
||||
nocows = 1
|
||||
timeout= 60
|
||||
force_valid_group_names = ignore
|
||||
#private_key_file = ~/.ssh/id_ed25519
|
||||
private_key_file = ~/.ssh/id_rsa
|
||||
forks=6
|
||||
[ssh_connection]
|
||||
ssh_args = -o StrictHostKeyChecking=no
|
||||
|
||||
24
inventory.yml
Normal file
24
inventory.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
stack4:
|
||||
hosts:
|
||||
quimby:
|
||||
willie:
|
||||
kirk:
|
||||
brandine:
|
||||
|
||||
test:
|
||||
hosts:
|
||||
hans:
|
||||
cleatus:
|
||||
terry:
|
||||
testsystem:
|
||||
|
||||
webs:
|
||||
hosts:
|
||||
web[00:09]:
|
||||
|
||||
frinks:
|
||||
hosts:
|
||||
frink[00:05]
|
||||
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python
|
||||
@@ -2,7 +2,7 @@
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd: >
|
||||
nmcli connection modify "preconfigured"
|
||||
nmcli connection modify "{{ nm_connection_name }}"
|
||||
ipv4.dns "{{ dns_ip }}"
|
||||
ipv4.ignore-auto-dns yes
|
||||
tags: dns
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
- name: Aktiviere geänderte DNS-Einstellungen
|
||||
become: true
|
||||
ansible.builtin.command: nmcli connection up "preconfigured"
|
||||
ansible.builtin.command: nmcli connection up "{{ nm_connection_name }}"
|
||||
tags: dns
|
||||
when: ansible_facts.lsb.codename == "trixie"
|
||||
|
||||
|
||||
17
roles/trixie_migration/vars/main_template.yml
Normal file
17
roles/trixie_migration/vars/main_template.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
# IP
|
||||
dns_ip: "192.168.178.60"
|
||||
nas_ip: "192.168.178.36"
|
||||
|
||||
#Netzwerkverbindung
|
||||
|
||||
ap_ssid: "<ssid>"
|
||||
nm_connection_name: "netplan-wlan0-{{ ap_ssid }}"
|
||||
# Pfade
|
||||
|
||||
backup_base: /tank/trixie
|
||||
backup_host_dir: "{{ backup_base }}/{{ inventory_hostname }}"
|
||||
restore_home_src: "{{ backup_host_dir }}/home/pi"
|
||||
restore_etc_src: "{{ backup_host_dir }}/etc"
|
||||
packages_file: "{{ backup_host_dir }}/packages.yml"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user