Skip to content

Instantly share code, notes, and snippets.

View don-rumata's full-sized avatar

don Rumata don-rumata

View GitHub Profile
@don-rumata
don-rumata / netdom-join.yml
Created December 15, 2021 21:52
Install and configure AD authentication
---
- name: Install and configure AD authentication
hosts: all
become: yes
# become_method: sudo
vars:
domain_for_join: cchgeu
fqdn_for_join: cchgeu.ru
admin_group: depit-srv_admins
full_netdom_join_user: '{{ netdom_join_user }}@{{ fqdn_for_join }}'
@don-rumata
don-rumata / vsftpd.conf
Created August 3, 2021 13:51
/etc/vsftpd.conf 4 ruSO
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
@don-rumata
don-rumata / dokuwiki_plugins_custom.yml
Created July 22, 2021 16:58
Example 4 don_rumata.ansible_role_install_dokuwiki
- dokuwiki_plugin_name: apexcharts
dokuwiki_plugin_url: https://github.com/karl257/dokuwiki-plugin-achart/tarball/master
dokuwiki_plugin_dir_name: achart # /var/www/dokuwiki/lib/plugins/achart
dokuwiki_plugin_skip_directory_level: 1 # https://unix.stackexchange.com/a/365990
dokuwiki_plugin_web_page: https://www.dokuwiki.org/plugin:achart
@don-rumata
don-rumata / ping.yml
Created January 21, 2021 21:26
Simple Ansible ping any Linux and Windows
---
# WORK
- name: Ping
hosts: all
strategy: free
serial:
- "100%"
tasks:
- name: Ping 4 Windows
@don-rumata
don-rumata / install-home-assistant.yml
Last active January 22, 2021 22:53
Ansible playbook for install Home Assistant in Ubuntu 20.04 over python virtualenv
---
# WORK
# https://marvins.ru/avtomatizaciya/ubuntu-ustanovka-home-assistant.html
# https://github.com/home-assistant-ecosystem/home-assistant-ansible
- name: Install Home Assistant
hosts: all
strategy: free
serial:
- "100%"
vars:
---
# Тут ставим не через snap, а классическим способам с настройками баз и т.д.
# https://rocket.chat/docs/installation/manual-installation/ubuntu/
- name: Install Rocket.Chat server Classic
# hosts: all
hosts: rocketchat
strategy: free
serial:
- "100%"
roles:
@don-rumata
don-rumata / create-vbox-vm.sh
Created December 14, 2020 22:29
Create VM in VirtualBox
#!/usr/bin/env bash
VM_NAME="test-vm_$(date +%F_%H-%M-%S)"
# Если линков 2 и более - надо как-то их выбрать сортировкой или грепом. В общем - только для одного соединения.
IFNAME_WHEN_LINK_UP=$(grep up /sys/class/net/*/operstate | cut -d '/' -f 5)
# http://unix.stackexchange.com/a/121526 http://serverfault.com/a/224565
# Это чтобы знать где виртуальные винты создавать.
DEFAULT_MACHINE_FOLDER="$(vboxmanage list systemproperties | grep 'Default machine folder' | sed 's/ //g' | cut -d ':' -f 2)"
#!/usr/bin/env bash
# WORK
# LANG=ru_RU.UTF-8
# Собираем ГОТОВЫЙ бинарник coredns в пакет для установки с помощью fpm. Он уже должен быть установлен.
# https://github.com/jordansissel/fpm
# https://fpm.readthedocs.io/en/latest/installing.html
MAIN_SERVER="10.10.10.10"
@don-rumata
don-rumata / update-ff-npp.yml
Created August 25, 2017 22:36
Update ff and npp over ansible
---
- name: Update soft
hosts: all
tasks:
# http://docs.ansible.com/ansible/latest/win_command_module.html
- name: Update Firefox
win_command: \\pxe.vgasu.vrn.ru\soft\firefox\FirefoxSetup-amd64.exe -ms
- name: Update Notepad++
win_command: \\pxe.vgasu.vrn.ru\soft\notepad-plus-plus\npp.latest.installer.amd64.exe /S