Update README.md
add formatting for commands
This commit is contained in:
committed by
GitHub Enterprise
parent
de0d9c0ec6
commit
345f8a9eb2
20
README.md
20
README.md
@@ -45,17 +45,17 @@ The Goal is to evenually be able to be a turnkey solution to spin up a "real" ne
|
||||
* Boot NOOBS and select the Raspbian Lite option:
|
||||
* On each Pi
|
||||
* log in as 'pi' with the password 'raspberry'
|
||||
* execute 'sudo update-rc.d ssh enable'
|
||||
* execute 'sudo invoke-rc.d ssh start'
|
||||
* execute 'sudo apt update -y'
|
||||
* execute _**sudo update-rc.d ssh enable**_
|
||||
* execute _**sudo invoke-rc.d ssh start**_
|
||||
* execute _**sudo apt update -y**_
|
||||
* Designate one of the Pi's to be the "main" device and do the following
|
||||
* execute 'sudo apt install -y ansible sshpass git'
|
||||
* execute 'git clone ssh://ansibledemo@96.82.16.164:/srv/git/ansible.git' - pw C*******9
|
||||
* execute 'cd ansible'
|
||||
* execute 'nano hosts' and follow the instructions in that file to add all of your Pi devices
|
||||
* execute 'ssh-keygen -t rsa' you will need to press enter three times to accept the defaults
|
||||
* execute 'PUBKEY="'$(<~/.ssh/id_rsa.pub)'" && ansible-playbook -i hosts deploy_authorized_keys.yml --ask-pass --extra-vars="pubkey=$PUBKEY"' it will prompt for the password which is still 'raspberry'
|
||||
* execute 'ansible-playbook -i hosts main.yaml --ask-become-pass' it will ask for the password which is still 'raspberry'
|
||||
* execute _**sudo apt install -y ansible sshpass git**_
|
||||
* execute _**git clone ssh://ansibledemo@96.82.16.164:/srv/git/ansible.git**_ - pw C*******9
|
||||
* execute _**cd ansible**_
|
||||
* execute _**nano hosts**_ and follow the instructions in that file to add all of your Pi devices
|
||||
* execute _**ssh-keygen -t rsa**_ you will need to press enter three times to accept the defaults
|
||||
* execute _**PUBKEY="'$(<~/.ssh/id_rsa.pub)'" && ansible-playbook -i hosts deploy_authorized_keys.yml --ask-pass --extra-vars="pubkey=$PUBKEY"' it will prompt for the password which is still 'raspberry**_
|
||||
* execute _**ansible-playbook -i hosts main.yaml --ask-become-pass**_ it will ask for the password which is still 'raspberry'
|
||||
* after it completes without errors
|
||||
* execute 'ansible-playbook -i hosts reboot.yaml' and wait for it to complete
|
||||
* execute 'sudo reboot'
|
||||
|
||||
Reference in New Issue
Block a user