Code Monkey home page Code Monkey logo

raspbian-ansibler's Introduction

rasbian-ansibler

installs ansible to raspbian and configures sensible defaults

local debian as raspbian

init

brew tap matti/tap
brew cask install virtualbox_and_extensionpack_4328100309
brew install sshpass
brew install ssh-copy-id

vagrant up

ansible it

sshpass -p raspbian ssh-copy-id -i ~/.ssh/id_rsa.pub -p 2222 [email protected]
./ansible_deps.sh 127.0.0.1 2222

echo "[raspbian-local]" > hosts_local
echo "127.0.0.1         ansible_ssh_port=2222        ansible_ssh_user=root" >> hosts_local

ansible -i hosts_local -m ping all

remote raspbian

init

sudo diskutil unmountDisk disk2; pv -petra raspbian_8gb_pi2.img | sudo dd bs=4m of=/dev/rdisk2

ansible it

sshpass -p raspbian ssh-copy-id -i ~/.ssh/id_rsa.pub -p 22 root@pi
./ansible_deps.sh pi 22

echo "[raspbian]" > hosts
echo "pi         ansible_ssh_port=22        ansible_ssh_user=root" >> hosts

ansible -i hosts -m ping all

all

ansible-galaxy install -r requirements.yml

play

ansible-playbook site.yml -i hosts_local
ansible-playbook site.yml -i hosts

raspbian-ansibler's People

Contributors

matti avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.