Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
linux:ansible:ffmuc-rpb4-ol [27.09.2022 15:37. ] – [Tasks] django | linux:ansible:ffmuc-rpb4-ol [27.09.2022 15:47. ] (aktuell) – [Inhalt] django | ||
---|---|---|---|
Zeile 11: | Zeile 11: | ||
====== Inhalt ====== | ====== Inhalt ====== | ||
- | |||
- | <WRAP center round alert 30%> | ||
- | **ACHTUNG: | ||
- | </ | ||
- | |||
<WRAP center round tip 90%> | <WRAP center round tip 90%> | ||
Zeile 1618: | Zeile 1613: | ||
== Templates == | == Templates == | ||
- | < | + | < |
+ | # interfaces(5) file used by ifup(8) and ifdown(8) | ||
# Please note that this file is written to be used with dhcpcd | # Please note that this file is written to be used with dhcpcd | ||
Zeile 1643: | Zeile 1639: | ||
pre-up / | pre-up / | ||
pre-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' | pre-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' | ||
- | post-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' | + | post-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' |
- | </ | + | |
- | < | + | |
+ | < | ||
+ | # interfaces(5) file used by ifup(8) and ifdown(8) | ||
# Please note that this file is written to be used with dhcpcd | # Please note that this file is written to be used with dhcpcd | ||
Zeile 1683: | Zeile 1680: | ||
</ | </ | ||
- | <file java ~/ | + | |
+ | <file java ~/ | ||
+ | # interfaces(5) file used by ifup(8) and ifdown(8) | ||
# Please note that this file is written to be used with dhcpcd | # Please note that this file is written to be used with dhcpcd | ||
Zeile 1714: | Zeile 1713: | ||
pre-up / | pre-up / | ||
pre-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' | pre-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' | ||
- | post-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' | + | post-up /sbin/ip link set address $(ip -br l | grep eth0 | egrep -o ' |
- | </ | + | |
<file bash ~/ | <file bash ~/ | ||
+ | # Generated by Ansible on {{ ansible_date_time.date }}, do not edit manually! | ||
# | # | ||
# rc.local | # rc.local | ||
Zeile 1737: | Zeile 1737: | ||
sleep 10; /sbin/brctl addif br-{{ ffmuc_segment }} wlan0 | sleep 10; /sbin/brctl addif br-{{ ffmuc_segment }} wlan0 | ||
/ | / | ||
- | exit 0 | + | exit 0</ |
- | </ | + | |
<file bash ~/ | <file bash ~/ | ||
+ | # Generated by Ansible on {{ ansible_date_time.date }}, do not edit manually! | ||
# | # | ||
# rc.local | # rc.local | ||
Zeile 1759: | Zeile 1760: | ||
fi | fi | ||
/ | / | ||
- | exit 0 | + | exit 0</ |
- | </ | + | |
+ | /* | ||
=== Rolle " | === Rolle " | ||
== Tasks == | == Tasks == | ||
Zeile 2201: | Zeile 2201: | ||
</ | </ | ||
+ | */ | ||
=== Rolle " | === Rolle " | ||
== Tasks == | == Tasks == | ||
<file java ~/ | <file java ~/ | ||
- | - include: reboot.yml | + | - include: reboot.yml |
- | ... #YAML Ende Syntax | + | ... # YML Ende</ |
- | </ | + | |
<file java ~/ | <file java ~/ | ||
- | | + | |
- | # https:// | + | - name: " |
- | | + | ansible.builtin.reboot: |
- | </ | + | |
+ | ...</ | ||
==== Download des auf Debian Buster basierenden Raspbian ==== | ==== Download des auf Debian Buster basierenden Raspbian ==== | ||
Zeile 2337: | Zeile 2339: | ||
Hier werden die zur Konfiguration benötigten Parameter nicht beim Aufruf des Playbooks abgefragt, sondern in zugehörigen **[[# | Hier werden die zur Konfiguration benötigten Parameter nicht beim Aufruf des Playbooks abgefragt, sondern in zugehörigen **[[# | ||
- | In den Zeilen **'' | + | In der Host-spezifischen Konfigurationsdatei |
- | $ vim ~/ | + | $ vim ~/ |
+ | |||
+ | < | ||
+ | # stationäre schwarzes Plastikgehäuse Raspberry 4B mit PoE-HAT und Display | ||
+ | # MAC: dc: | ||
+ | ansible_ssh_host: | ||
+ | ansible_port: | ||
+ | ansible_user: | ||
+ | ansible_ssh_private_key_file: | ||
+ | # | ||
+ | batman_adv_version: | ||
+ | ffmuc_segment: | ||
+ | ffmuc_gateway: | ||
+ | raspberry_hostname: | ||
+ | node_contact_address: | ||
+ | raspberry_latitude: | ||
+ | raspberry_longitude: | ||
+ | raspberry_wifi: | ||
+ | raspberry_clientvlan: | ||
+ | raspberry_meshvlan: | ||
+ | raspberry_oled: | ||
- | < | + | Diese passen wir natürlich noch auf unsere lokale Umgebung hin an. |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
=== Playbook Lauf === | === Playbook Lauf === |