From e6d2260e3f2b72d57579c7b02a7aafd780b7df43 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Mon, 25 Nov 2024 14:46:43 +0100 Subject: [PATCH] Kapitel 01: Installation --- .gitignore | 13 +++++++++ 01/ansible.cfg | 11 ++++++++ 01/install_ansible_pip.txt | 9 +++++++ README.md | 55 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 .gitignore create mode 100644 01/ansible.cfg create mode 100644 01/install_ansible_pip.txt create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9fa9a96 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*~ +.*.sw? + +*.pyc + + +Retry/ +.cache + +cert*pem +cert*key +*.pw + diff --git a/01/ansible.cfg b/01/ansible.cfg new file mode 100644 index 0000000..2c30f8a --- /dev/null +++ b/01/ansible.cfg @@ -0,0 +1,11 @@ +[defaults] + +# Farben ausschalten +#nocolor = 1 + +[colors] +# Für dunklen Hintergrund in der Console +verbose = bright blue +debug = bright gray +error = bright red + diff --git a/01/install_ansible_pip.txt b/01/install_ansible_pip.txt new file mode 100644 index 0000000..6470ce6 --- /dev/null +++ b/01/install_ansible_pip.txt @@ -0,0 +1,9 @@ +# Debian-Universum +% sudo apt install python3-pip python3-cryptography python3-packaging python3-resolvelib python3-yaml + # python3-jinja2 + +# Alpine Linux +% sudo apk add py3-pip py3-cryptography py3-jinja2 py3-resolvelib py3-yaml + +% sudo sudo pip3 install ansible + diff --git a/README.md b/README.md new file mode 100644 index 0000000..b62a9ec --- /dev/null +++ b/README.md @@ -0,0 +1,55 @@ +# Ansible-Kurs 2024-11 + +## Zuordnung + + * `tn01` - Uwe + * `tn02` - Carsten R. + * `tn03` - Markus + * `tn04` - Kevin + * `tn05` - Carsten J. + * `tn06` - Clife + * `tn07` - Rene + * `tn08` - Michelle + * `tn09` - Christopher + +## 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 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 +``` + + +