Skip to content

Instantly share code, notes, and snippets.

@AlBichutsky
AlBichutsky / inventory.sh
Created January 28, 2021 07:56 — forked from tuxfight3r/inventory.sh
Ansible dynamic inventory bash demo
#!/bin/bash
if [ "$1" == "--list" ] ; then
cat<<EOF
{
"bash_hosts": {
"hosts": [
"10.220.21.24",
"10.220.21.27"
],
@AlBichutsky
AlBichutsky / mysql_secure.sh
Created June 19, 2019 20:22 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10