Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1023 Bytes

README.md

File metadata and controls

35 lines (30 loc) · 1023 Bytes

ansible-raspi-config

This playbook configure basic settings for the Raspberry Pi headless thanks to Ansible. No needs to run raspi-config utility on a display!

Heavily based on the raspi-config nonint option, but NOT 100% ported! Change vars at the beginning of raspi-config.yml file and hosts to suit your needs.

Run with: ansible-playbook -i hosts raspi-config.yml Don't forget to touch ssh in the SD /boot partitions!

Works:

  • Change hostname
  • Set boot behaviour (cli/desktop/autologin)
  • Change locale
  • Change timezone
  • Change keyboard layout
  • Enable/Disable Camera, SSH, VNC, SPI, i2C, Serial, 1-Wire, remote GPIO
  • Expand filesystem
  • Set GPU ram split
  • Enable/Disable pixel doubling
  • Update raspi-config

Not fully tested:

  • Set WiFi credentials
  • Enable network names
  • Wait for Network at Boot
  • Splash Screen
  • Set WiFi country
  • Set overclock
  • Enable overscan
  • Set audio out
  • Set HDMI group mode
  • Set OpenGL desktop driver

TODO:

  • Change user password (i prefer Ansible user module)