This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To templates dir to render from | |
${ansvars} | |
${group} | |
${servers} | |
#To VM module main.tf | |
data "template_file" "inventory" { | |
template = file("${path.module}/templates/ansible_inv.tpl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Raspbian Wi-Fi connect script | |
# You can scan [1], connect directly [2], rejoin [3] or view the configuration file [4] with this little script I wrote just for fun and I thought I'd share it :-) | |
# Tested on Raspberry Pi Zero w | |
if [ "$(id -u)" != "0" ] ; then | |
echo "Please run this script as superuser" | |
exit 1 | |
fi |