Giter Club home page Giter Club logo

docker-pi's Introduction

Ansible role: Docker-Pi

Build Status

###Ansible role for Docker installation on a Raspberry Pi

Requirements

Assumes Raspbian OS or equivalent.

Raspbian Jessie Lite can be downloaded from here https://www.raspberrypi.org/downloads/raspbian

Role Variables

###Varaibles are shown below along with their default values

####Install:

All tasks are run with privilege escalation by default. As per the Ansible documentation become_user defaults to the root user, so installation will be run as root by default.

# vars/main.yml

become: yes

####Login:

The Docker Hub username, password are required for login. The task will be skipped if any are missing.

This is also run as the root user by default. If a specific user needs to be logged in, register this under the docker_pi_user variable.

# defaults/main.yml

docker_pi_user: root

docker_pi_hub_username: ""
docker_pi_hub_password: ""

####Users:

List all users that need to be added to the docker group under the docker_pi_group_users variable. Users must already exist on the machine.

# defaults/main.yml

docker_pi_group_users: []

Dependencies

No dependencies on other Ansible roles.

Example Playbook

Basic installation, without login to Docker hub or adding additional 'docker' users:

- hosts: raspberry-pi
  roles:
    - role: Benaud12.docker-pi

Install with login and additional users:

- hosts: raspberry-pi
  roles:
    - role: Benaud12.docker-pi
      docker_pi_user: mick.dundee
      docker_pi_hub_username: croc_killer123
      docker_pi_hub_password: knifeySpoony
      docker_pi_group_users:
        - mick.dundee
        - sue.charlton
        - donk
        - pi

docker-pi's People

Contributors

benaud12 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.