- updates to Raspbian 10 variables

- attempt scripting
This commit is contained in:
Pi
2019-07-22 10:44:29 -04:00
parent 710adf958b
commit e5b8dec3ad
3 changed files with 23 additions and 1 deletions

21
build.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
#
# Install and enable SSH server
#
update-rc.d ssh enable
invoke-rc.d ssh start
#
#
#apt update -y
#
#
#sudo apt install -y ansible sshpass git
#
#
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -q -N ""
#
#
PUBKEY="'$(<~.ssh/id_rsa.pub)'" && ansible-playbook -i hosts deploy_authorized_keys.xml --ask-pass --extra-vars="pubkey=$PUBKEY"
ansible-playbook -i hosts main.yaml --ask-become-pass
ansible-playbook -i hosts reboot.yaml
reboot