Setup and configure dnsmasq ubuntu as dns server

Setup apt-get install dnsmasq -y Configure dnsmasq cat /etc/dnsmasq.conf # Listen interfaces interface=tun0 interface=enp0s31f6 # не пересылать простые текстовые запросы (без точки или без части домена) domain-needed # никогда не пересылать не маршрутизированные адреса bogus-priv # запрет считывать адреса DNS-серверов с файла resolv.conf no-resolv # отключение отслеживание изменения файла /etc/resolv.conf или другого файла выполняющего его […]

Читать дальше… from Setup and configure dnsmasq ubuntu as dns server

GIT – FAQ

Git: Delete a branch (local or remote) To delete a local branch git branch -d the_local_branch To remove a remote branch (if you know what you are doing!) git push origin –delete the_remote_branch Sync git fetch -p The git manual says -p, –prune After fetching, remove any remote-tracking branches which no longer exist on the […]

Читать дальше… from GIT – FAQ

Setup soft raid 0 on live ubuntu 16.0.4/ debian -8/9 system without downtime

In this tutorial I am using debian 9 system with two disks, /dev/vda and /dev/vdb which are identical in size. /dev/vdb is currently unused, and /dev/vda has the following partition: See info fdisk -l /dev/vda1: / partition, ext4; /dev/vda2: swap After completing this guide I will have the following situation: /dev/md0: / partition, ext4; /dev/md1: […]

Читать дальше… from Setup soft raid 0 on live ubuntu 16.0.4/ debian -8/9 system without downtime

Ansible – FAQ

Ansible – FAQ Запуск playbook с хостом как аргументом Play Book файл – hosts: ‘{{ host }}’ tasks: – debug: msg=”Host is {{ ansible_fqdn }}” inventory.hosts файл [web] itc-life-god1 ansible_ssh_host=10.10.10.1 ansible_ssh_user=god [droplets] itc-life-god2 ansible_ssh_host=10.10.10.2 ansible_ssh_user=god Запуск playbook ansible-playbook deplyment.yml -i inventory.hosts –extra-vars “host=itc-life-god2” […]

Читать дальше… from Ansible – FAQ