Role Detail

geerlingguy.raspberry-pi

Configures a Raspberry Pi.
Downloads
148
Type Ansible
Minimum Ansible Version 1.9
Installation $ ansible-galaxy install geerlingguy.raspberry-pi
Tags
system
Last Commit 2017-01-22 02:02:02 AM UTC
Last Imported 2017-01-22 04:00:04 AM UTC
Version History
Version Release Date
1.2.0 2016-08-01 17:38:05 PM
1.1.0 2016-03-06 22:59:10 PM
1.0.0 2015-12-09 04:33:04 AM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
Last 10 Imports
Completed Status
2017-01-22 04:00:04 AM UTC SUCCESS
2016-11-02 20:22:08 PM UTC SUCCESS
2016-09-16 02:00:02 AM UTC SUCCESS
2016-08-01 17:42:05 PM UTC SUCCESS
2016-08-01 17:41:05 PM UTC SUCCESS
2016-08-01 17:41:05 PM UTC SUCCESS
2016-08-01 17:40:05 PM UTC SUCCESS
2016-07-29 23:40:11 PM UTC SUCCESS
2016-03-07 01:37:01 AM UTC SUCCESS
2016-03-06 23:01:11 PM UTC SUCCESS

Ansible Role: Raspberry Pi

Build Status

Configures a Raspberry Pi (running Raspbian).

This role will reconfigure certain options in the Raspberry Pi configuration files, but will not automatically restart the Pi to make all the changes take effect. For most changes, you'll need to make sure to reboot your Pi(s) after this role runs.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

raspberry_pi_boot_config_options:
  # Set the GPU memory split value.
  - regexp: "^#?gpu_mem"
    line: "gpu_mem=16"
  # Enable 1200ma USB current on newer model Pis.
  - regexp: "^#?max_usb_current"
    line: "max_usb_current=1"

Use Ansible's lineinfile module to ensure certain settings are configured inside /boot/config.txt.

raspberry_pi_rc_local_options:
  # Disable HDMI on startup (for power savings).
  - regexp: "^/usr/bin/tvservice"
    line: "/usr/bin/tvservice -o"

Use Ansible's lineinfile module to ensure certain settings are configured inside /etc/rc.local.

Dependencies

None.

Example Playbook

- hosts: pi
  vars_files:
    - vars/main.yml
  roles:
    - { role: geerlingguy.raspberry-pi }

License

MIT / BSD

Author Information

This role was created in 2015 by Jeff Geerling, author of Ansible for DevOps.

None