Skip to content

Instantly share code, notes, and snippets.

View nixcraft's full-sized avatar

nixCraft nixcraft

View GitHub Profile
@nixcraft
nixcraft / reboot.yaml
Created June 2, 2020 08:03
Ansible reboot all servers except two database servers
- name: Check if a reboot is needed on all Ubuntu/Debian based servers
register: reboot_required_file
stat: path=/var/run/reboot-required get_md5=no
- name: Reboot the box if kernel updated
reboot:
msg: "Reboot initiated by Ansible for kernel updates"
connect_timeout: 5
reboot_timeout: 300
pre_reboot_delay: 0
post_reboot_delay: 30

Keybase proof

I hereby claim:

  • I am nixcraft on github.
  • I am nixcraft (https://keybase.io/nixcraft) on keybase.
  • I have a public key whose fingerprint is 879C DB00 61DD B38A BFE6 FA58 4B5B 9DA8 959C F511

To claim this, I am signing this object:

@nixcraft
nixcraft / bootload.conf
Created May 28, 2018 21:29
bootload.conf on FreeBSD 11.1
aesni_load="YES"
geom_eli_load="YES"
geom_mirror_load="YES"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
vfs.zfs.min_auto_ashift=12
zfs_load="YES"
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
@nixcraft
nixcraft / gist:dfdd414fac733556eafdbd8e848bd80f
Last active June 20, 2017 00:28
Download Debian 9 DVD images
#!/bin/bash
# Purpose getdeb9: Download Debian 9 DVD images
# Author: Vivek Gite, under GPL v.2.0+
# Tip: run it using screen session :)
# Added $_version for easy downloads
# Updated for Debian 9.x
# ------------------------------------------------------
_bit="${1:-64}"
_arch="i386"
#