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

Consul HA cluster in docker swarm

Consul HA cluster in docker swarm To deploy ha cluster with consul and swarm i maked docker-compose file for deploying. I had swarm cluster with 1 node manager and 3 node workers. Prepare: – Fully configured docker swarm cluster – install make utility Our nodes vm101 – worker vm102 – worker vm103 – worker vm104 […]

Читать дальше… from Consul HA cluster in docker swarm

Nextcloud 20 run in docker with php-fpm,nginx-backend and nginx proxy + openldap

Nextcloud 20 run in docker with php-fpm,nginx-backend and nginx proxy Create docker-compose.yml swarm — version: '3.5' services: nginx-backend: image: registry.gitlab.com/devops_containers/dockers/nginx:1.19.6-alpine-libressl hostname: nginx volumes: – "./configs/nginx:/etc/nginx" – "./data:/data" ports: – target: 80 published: 82 protocol: tcp mode: host environment: – "TZ=Asia/Yekaterinburg" networks: pxc_8_pxc8-net: mysql_8_mysql8-net: app_app-network: aliases: – nginx-backend-itc-life deploy: replicas: 1 restart_policy: condition: any delay: 5s […]

Читать дальше… from Nextcloud 20 run in docker with php-fpm,nginx-backend and nginx proxy + openldap

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