High Availbility

OS & Virtualization

Tuesday, April 09, 2024

PostgesSQL

Online Postgest testing


Cheatsheet

https://tomcam.github.io/postgres/#opening-a-connection-locally
https://www.geeksforgeeks.org/postgresql-psql-commands/

Basic commands

psql -d database -U user -W =  connect to database user specific user

psql -V       = version
\?            = help
\conninfo     = connection information
\l            = list databases
\dt           = list tables
\du           = display users
\s            = display command history
\i            = execute file
\H            = switch to HTML
\q            = quit

Dockers

docker exec -it mypostgres psql -h localhost -U postgres

Friday, March 29, 2024

Ansible notes

Ansible is an open source, command-line IT automation software application that can configure systems, deploy software, and orchestrate workflows. I

sudo dnf install python3-pip
sudo pip3 install --upgrade setuptools
sudo pip3 install --user --upgrade ansible
ansible --version

Ansible galaxy

Ansible-galaxy install -r collection/requirements.yml
Ansible-galaxy collection -h
Ansible-galaxy collection list
Ansible galaxy collection/collection.yml