- 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
|
||||
@@ -27,6 +27,7 @@
|
||||
state: present
|
||||
tags: update_hosts
|
||||
- name: install required packages
|
||||
become: true
|
||||
package:
|
||||
name: "{{ dependency_packages }}"
|
||||
state: present
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
dependency_packages:
|
||||
- name:
|
||||
- expect
|
||||
- ftp
|
||||
- cadaver
|
||||
|
||||
Reference in New Issue
Block a user