Skip to content

dsiguero/ansible-gutenberg-pi

Repository files navigation

ansible-gutenberg-pi

This is an Ansible project that aims to allow me to configure my Raspberry Pi based printing server using CUPS.

Playbooks

main.yaml is the main playbook, as the name would suggest. There are a couple more playbooks however:

  • update.yaml: keeps packages up-to-date
  • debug_facts.yaml: to display Ansible facts easily
  • m1132mfp.yaml: installs hplip drivers and configures a HP LaserJet M1132MFP printer
  • ml1660.yaml: installs Samsung splix drivers and configures a Samsung ML-1660 Series printer

How to run

ansible-playbook main|update|debug_facts.yaml [--ask-pass] [--check]

⚠️ Note: Unless you set up a key (authorized_keys) beforehand, Ansible will require --ask-pass flag in order to establish a SSH connection the first time it runs.

Stack

  • NetworkManager for wireless connection management (including static IP address)
  • CUPS for network printing
  • SANE + AirSane for network image acquisition

TODO:

  • SSH security concerns
  • Package update/upgrade
  • Raspberry Pi specific configurations
  • Configure current static IP in dhcpcd Network manager
  • cups
    • windows: avahi/bonjour. No SMB required
    • macos: avahi/bonjour. No SMB required
    • android: avahi/bonjour. No SMB required
    • ios: might need airprint
  • printer-specific roles/plays
  • sane
  • airsane: expose scanner through the network
  • drop files to network folder to print?
  • move scanned files to different location as they are created (paperless)
  • trigger scan from Home Assistant

About

CUPS print server setup using Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages