- updates to Raspbian 10 variables
- attempt scripting
This commit is contained in:
21
build.sh
Normal file
21
build.sh
Normal 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
|
||||
Reference in New Issue
Block a user