Ansible-Kurs November 2025 @Heinlein - Musterlösungen
Find a file
2025-11-26 15:27:33 +01:00
01 Kapitel 01: test.txt 2025-11-24 15:44:30 +01:00
02 Kapitel 02 2025-11-24 16:37:07 +01:00
03 Kapitel 03: Key per ansible 2025-11-25 11:15:37 +01:00
04 Kapitel 04: Config & Inventory 2025-11-25 11:21:35 +01:00
05 Kapitel 05: chrony mit Variablen 2025-11-25 15:38:20 +01:00
06 Kapitel 06: Roles 2025-11-26 09:04:19 +01:00
07 Kapitel 07 2025-11-26 10:49:43 +01:00
08 Kapitel 08: getent-Variante für username 2025-11-26 15:27:33 +01:00
group_vars Kapitel 06: Roles 2025-11-26 09:04:19 +01:00
helper Kapitel 08: Schleifen, Lookups, Include 2025-11-26 14:00:31 +01:00
host_vars Kapitel 06: Roles 2025-11-26 09:04:19 +01:00
roles Kapitel 06: Roles 2025-11-26 09:04:19 +01:00
roles.extern Kapitel 07 2025-11-26 10:49:43 +01:00
.gitignore Initial commit 2025-11-23 08:24:10 +00:00
.gitmodules Kapitel 07 2025-11-26 10:49:43 +01:00
ansible.cfg Kapitel 07 2025-11-26 10:49:43 +01:00
hosts.ini Kapitel 04: Config & Inventory 2025-11-25 11:21:35 +01:00
LXContainer.md LXContainer 2025-11-24 17:49:38 +01:00
README.md LXContainer 2025-11-24 17:49:38 +01:00

Ansible-Kurs

Zuordnung

  • tn01 - Andreas
  • tn02 - Peggy
  • tn03 - Martin
  • tn04 - Sascha
  • tn05 - Hieu
  • tn06 - Abdulkarim
  • tn07 - Arvin
  • tn08 - Claas
  • tn09 - Uwe
  • tn010 - Philipp

Allgemein

root-Rechte

Der Benutzer kurs ist in den sudo-Einstellungen (ohne Passwort-Eingabe) hinterlegt.

Ihr könnt also sudo -Es, sudo -i, sudo su -, ... oder natürlich auch sudo apt install ... usw. verwenden!

Debian

Paketmanager Kurzeinführung

  • Index-Files aktualisieren: (sudo) apt(-get) update
  • Pakete suchen (alle Begriffe!): apt-cache search ansible lint
  • Pakete installieren: (sudo) apt(-get) install ansible-lint

Standard-Editor anpassen

root@tn00-purple:~# update-alternatives --config editor
There are 8 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /usr/bin/joe         70        auto mode
  1            /bin/nano            40        manual mode
  2            /usr/bin/jmacs       50        manual mode
  3            /usr/bin/joe         70        manual mode
  4            /usr/bin/jpico       50        manual mode
  5            /usr/bin/jstar       50        manual mode
  6            /usr/bin/rjoe        25        manual mode
  7            /usr/bin/vim.basic   30        manual mode
  8            /usr/bin/vim.tiny    15        manual mode

Press <enter> to keep the current choice[*], or type selection number: 8
[...]
root@tn00-purple:~# ls -l /etc/alternatives/editor /etc/alternatives/vim
lrwxrwxrwx 1 root root 18 Nov 22 09:09 /etc/alternatives/editor -> /usr/bin/vim.basic
lrwxrwxrwx 1 root root 18 Aug 17 21:58 /etc/alternatives/vim -> /usr/bin/vim.basic