Skip to content

rothgar/ansible-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-pi

Ansible playbook for setting up a raspi

Goals

  • Expand rootfs
  • Set hostname
  • Secure SSH
  • Change pi users password (random)
  • Install docker
  • Install basic packages

Usage

Run with

ansible-playbook -i inventory main.yml

If you only want to run on a single machine you can add -e target=pi. Default value is all

If you've never connected to a pi before you should disable host key checking with

ANSIBLE_HOST_KEY_CHECKING=False

If you only want to run one part of the playbook you can use tags

  • init
  • common
  • docker
  • swarm

Dependancies

Playbook is made for Ansible 2.0+. Tested on 2.1.1

I'm using a docker-swarm galaxy playbook from atosatto.

ansible-galaxy install atosatto.docker-swarm

ToDo

  • init docker swarm
  • run containers
  • split into separate roles

About

Ansible playbook for setting up a raspi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published