Export AWX/Tower Inventory to a standard Inventory of ansible

Export Ansible AWX/Tower Inventory to a standard Inventory I use awx in work, but sometimes ineed export hosts from awx database to local ansible. For this proporses i writed script and share it on gitlab #!/usr/bin/env python3.8 import psycopg2 import os import yaml AWX_DB_HOST = os.getenv('AWX_DB_HOST', '10.48.0.101') AWX_DB_PORT = os.getenv('AWX_DB_PORT', '15432') AWX_DB_NAME = os.getenv('AWX_DB_NAME', 'awx') […]

Читать дальше… from Export AWX/Tower Inventory to a standard Inventory of ansible

Debian/ubuntu fix error Possible missing firmware /lib/firmware/rtl_nic/rtl81

Error during update image in debian/ubuntu W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169 Fix curl -L https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8125a-3.fw -o /lib/firmware/rtl_nic/rtl8125a-3.fw curl -L https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8125b-2.fw -o /lib/firmware/rtl_nic/rtl8125b-2.fw curl -L https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8168fp-3.fw -o /lib/firmware/rtl_nic/rtl8168fp-3.fw update-initramfs -u […]

Читать дальше… from Debian/ubuntu fix error Possible missing firmware /lib/firmware/rtl_nic/rtl81

Access your remote MySQL server, which only allow MySQL connections from our bastion host

How access your remote MySQL server, which only allow MySQL connections from our bastion host and we would like to access that MySQL via the Bastion Server with a SSH Tunnel from our pc. Setup the SSH Tunnel Establish the tunnel: ssh -f -p 22 me@bastion.domain.example -L 3306:remote-mysql.domain.example:3306 -N Save the pid as an environment […]

Читать дальше… from Access your remote MySQL server, which only allow MySQL connections from our bastion host

Fix error linux Possible missing firmware /lib/firmware/amdgpu with latest kernel

Fix error linux Possible missing firmware /lib/firmware/amdgpu Setup kernel linux 5.10 cd /tmp wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10-rc3/amd64/linux-headers-5.10.0-051000rc3_5.10.0-051000rc3.202011082030_all.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10-rc3/amd64/linux-headers-5.10.0-051000rc3-generic_5.10.0-051000rc3.202011082030_amd64.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10-rc3/amd64/linux-image-unsigned-5.10.0-051000rc3-generic_5.10.0-051000rc3.202011082030_amd64.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10-rc3/amd64/linux-modules-5.10.0-051000rc3-generic_5.10.0-051000rc3.202011082030_amd64.deb sudo dpkg -i linux*.deb Run this script for install firmware for all install kernels #!/bin/bash cd /tmp git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware.git sudo rsync -a linux-firmware/amdgpu/* /lib/firmware/amdgpu/ sudo update-initramfs -k all -u […]

Читать дальше… from Fix error linux Possible missing firmware /lib/firmware/amdgpu with latest kernel