tachtler:ansible
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:ansible [2020/01/05 09:10] – [sudoers.yml] klaus | tachtler:ansible [2020/03/27 08:16] (aktuell) – [CentOS] klaus | ||
---|---|---|---|
Zeile 22: | Zeile 22: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
+ | ==== CentOS ==== | ||
Zur Installation von [[https:// | Zur Installation von [[https:// | ||
* **'' | * **'' | ||
+ | * **'' | ||
Mit nachfolgendem Befehl, wird das Pakete **'' | Mit nachfolgendem Befehl, wird das Pakete **'' | ||
Zeile 132: | Zeile 135: | ||
</ | </ | ||
- | Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paket **'' | + | Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit dem Paket **'' |
< | < | ||
# rpm -qil ansible | # rpm -qil ansible | ||
Zeile 174: | Zeile 177: | ||
/ | / | ||
... | ... | ||
+ | </ | ||
+ | |||
+ | Mit nachfolgendem Befehl, wird das Pakete **'' | ||
+ | < | ||
+ | # dnf install policycoreutils-python-utils | ||
+ | Last metadata expiration check: 0:05:29 ago on Fri 27 Mar 2020 08:05:25 AM CET. | ||
+ | Dependencies resolved. | ||
+ | ================================================================================ | ||
+ | | ||
+ | ================================================================================ | ||
+ | Installing: | ||
+ | | ||
+ | noarch 2.9-3.el8_1.1 | ||
+ | Installing dependencies: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ================================================================================ | ||
+ | Install | ||
+ | |||
+ | Total download size: 3.6 M | ||
+ | Installed size: 11 M | ||
+ | Is this ok [y/N]: y | ||
+ | Downloading Packages: | ||
+ | (1/6): python3-audit-3.0-0.10.20180831git0047a6 | ||
+ | (2/6): python3-libsemanage-2.9-1.el8.x86_64.rpm 302 kB/s | 127 kB | ||
+ | (3/6): policycoreutils-python-utils-2.9-3.el8_1 | ||
+ | (4/6): checkpolicy-2.9-1.el8.x86_64.rpm | ||
+ | (5/6): python3-setools-4.2.2-1.el8.x86_64.rpm | ||
+ | (6/6): python3-policycoreutils-2.9-3.el8_1.1.no 891 kB/s | 2.2 MB | ||
+ | -------------------------------------------------------------------------------- | ||
+ | Total 665 kB/s | 3.6 MB | ||
+ | Running transaction check | ||
+ | Transaction check succeeded. | ||
+ | Running transaction test | ||
+ | Transaction test succeeded. | ||
+ | Running transaction | ||
+ | Preparing | ||
+ | Installing | ||
+ | Installing | ||
+ | Installing | ||
+ | Installing | ||
+ | Installing | ||
+ | Installing | ||
+ | Running scriptlet: policycoreutils-python-utils-2.9-3.el8_1.1.noarch | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | |||
+ | Installed: | ||
+ | policycoreutils-python-utils-2.9-3.el8_1.1.noarch | ||
+ | checkpolicy-2.9-1.el8.x86_64 | ||
+ | python3-audit-3.0-0.10.20180831git0047a6c.el8.x86_64 | ||
+ | python3-libsemanage-2.9-1.el8.x86_64 | ||
+ | python3-policycoreutils-2.9-3.el8_1.1.noarch | ||
+ | python3-setools-4.2.2-1.el8.x86_64 | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | |||
+ | Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit dem Paket **'' | ||
+ | < | ||
+ | # rpm -qil policycoreutils-python-utils | ||
+ | Name : policycoreutils-python-utils | ||
+ | Version | ||
+ | Release | ||
+ | Architecture: | ||
+ | Install Date: Fri 27 Mar 2020 08:11:05 AM CET | ||
+ | Group : Unspecified | ||
+ | Size : 139789 | ||
+ | License | ||
+ | Signature | ||
+ | Source RPM : policycoreutils-2.9-3.el8_1.1.src.rpm | ||
+ | Build Date : Tue 04 Feb 2020 08:03:14 PM CET | ||
+ | Build Host : aah11.rdu2.centos.org | ||
+ | Relocations : (not relocatable) | ||
+ | Packager | ||
+ | Vendor | ||
+ | URL : https:// | ||
+ | Summary | ||
+ | Description : | ||
+ | The policycoreutils-python-utils package contains the management tools use to manage | ||
+ | an SELinux environment. | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
</ | </ | ||
Zeile 185: | Zeile 323: | ||
executable location = / | executable location = / | ||
python version = 3.6.8 (default, Oct 7 2019, 17:58:22) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] | python version = 3.6.8 (default, Oct 7 2019, 17:58:22) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] | ||
+ | </ | ||
+ | |||
+ | ==== ArchLinux ==== | ||
+ | |||
+ | Mit nachfolgendem Befehl, wird das Pakete **'' | ||
+ | < | ||
+ | # pacman -S ansible --noconfirm | ||
+ | resolving dependencies... | ||
+ | looking for conflicting packages... | ||
+ | |||
+ | Packages (24) libnsl-1.2.0-2 | ||
+ | python-3.8.1-1 | ||
+ | python-bcrypt-3.1.7-3 | ||
+ | python-cryptography-2.8-1 | ||
+ | python-jinja-2.10.3-3 | ||
+ | python-ordered-set-3.1.1-1 | ||
+ | python-paramiko-2.6.0-3 | ||
+ | python-pycparser-2.19-3 | ||
+ | python-pyparsing-2.4.6-1 | ||
+ | python-six-1.13.0-2 | ||
+ | |||
+ | Total Download Size: 52.42 MiB | ||
+ | Total Installed Size: 307.49 MiB | ||
+ | |||
+ | :: Proceed with installation? | ||
+ | :: Retrieving packages... | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | (24/24) checking keys in keyring | ||
+ | (24/24) checking package integrity | ||
+ | (24/24) loading package files [###################### | ||
+ | (24/24) checking for file conflicts | ||
+ | (24/24) checking available disk space [###################### | ||
+ | :: Processing package changes... | ||
+ | ( 1/24) installing libnsl | ||
+ | ( 2/24) installing python | ||
+ | Optional dependencies for python | ||
+ | python-setuptools [pending] | ||
+ | python-pip | ||
+ | sqlite [installed] | ||
+ | mpdecimal: for decimal | ||
+ | xz: for lzma [installed] | ||
+ | tk: for tkinter | ||
+ | ( 3/24) installing libyaml | ||
+ | ( 4/24) installing python-yaml | ||
+ | ( 5/24) installing python-ply | ||
+ | ( 6/24) installing python-pycparser | ||
+ | ( 7/24) installing python-cffi | ||
+ | ( 8/24) installing python-six | ||
+ | ( 9/24) installing python-bcrypt | ||
+ | (10/24) installing python-idna | ||
+ | (11/24) installing python-appdirs | ||
+ | (12/24) installing python-pyparsing | ||
+ | (13/24) installing python-packaging | ||
+ | (14/24) installing python-ordered-set | ||
+ | (15/24) installing python-setuptools | ||
+ | (16/24) installing python-asn1crypto | ||
+ | (17/24) installing python-cryptography | ||
+ | (18/24) installing python-pyasn1 | ||
+ | (19/24) installing libsodium | ||
+ | (20/24) installing python-pynacl | ||
+ | (21/24) installing python-paramiko | ||
+ | (22/24) installing python-markupsafe | ||
+ | (23/24) installing python-jinja | ||
+ | Optional dependencies for python-jinja | ||
+ | python-babel: | ||
+ | (24/24) installing ansible | ||
+ | Optional dependencies for ansible | ||
+ | sshpass: for ssh connections with password | ||
+ | python-passlib: | ||
+ | python-pyopenssl: | ||
+ | python-netaddr: | ||
+ | python-systemd: | ||
+ | python-pywinrm: | ||
+ | python-dnspython: | ||
+ | python-ovirt-engine-sdk: | ||
+ | python-boto3: | ||
+ | python-jmespath: | ||
+ | acme-tiny: openssl_certificate module | ||
+ | :: Running post-transaction hooks... | ||
+ | (1/1) Arming ConditionNeedsUpdate... | ||
+ | </ | ||
+ | |||
+ | Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit dem Paket **'' | ||
+ | < | ||
+ | # pacman -Ql ansible | ||
+ | ansible /etc/ | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible /usr/ | ||
+ | ansible /usr/bin/ | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible /usr/lib/ | ||
+ | ansible / | ||
+ | ... | ||
+ | [Kürzung der Ausgabe] | ||
+ | ... | ||
+ | ansible /usr/share/ | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | ansible / | ||
+ | </ | ||
+ | |||
+ | Zum Abschluss kann mit nachfolgendem Befehl überprüft werden, ob ein Aufruf möglich ist und [[https:// | ||
+ | < | ||
+ | # ansible --version | ||
+ | ansible 2.9.2 | ||
+ | config file = / | ||
+ | configured module search path = ['/ | ||
+ | ansible python module location = / | ||
+ | executable location = / | ||
+ | python version = 3.8.1 (default, Dec 21 2019, 20:57:38) [GCC 9.2.0] | ||
</ | </ | ||
===== Vorbereitung ===== | ===== Vorbereitung ===== | ||
+ | |||
+ | :!: **HINWEIS** - **Nachfolgende Schritte sind __NICHT__ mehr durchzuführen, | ||
+ | * [[tachtler: | ||
Für die spätere Kommunikation via **SSH**, kann mit nachfolgendem Befehl ein **SSH-Schlüsselpaar** erzeugt werden, welches dann später zur Anmeldung an den entsprechenden Servern verwendet werden kann. | Für die spätere Kommunikation via **SSH**, kann mit nachfolgendem Befehl ein **SSH-Schlüsselpaar** erzeugt werden, welches dann später zur Anmeldung an den entsprechenden Servern verwendet werden kann. | ||
Zeile 230: | Zeile 534: | ||
* < | * < | ||
- | '' | + | '' |
Bei der Überprüfung von DH-GEX-Kandidaten (mit dem Befehl '' | Bei der Überprüfung von DH-GEX-Kandidaten (mit dem Befehl '' | ||
Zeile 438: | Zeile 742: | ||
umzusetzen. | umzusetzen. | ||
- | :!: **WICHTIG** - **Durch die Aufnahme eines Benutzers, hier '' | + | :!: **WICHTIG** - **Durch die Aufnahme eines Benutzers, hier '' |
:!: **WICHTIG** - Damit kann nun ermöglicht werden, dass der Benutzer, hier **'' | :!: **WICHTIG** - Damit kann nun ermöglicht werden, dass der Benutzer, hier **'' |
tachtler/ansible.1578211807.txt.gz · Zuletzt geändert: 2020/01/05 09:10 von klaus