Skip to content

m0by314/raspi_config_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspi_config_py

Tool to configure a Raspberry Pi with Ansible

- Build

On Mac it is necessary to install the SSL certificate : /Applications/Python\ 3.11/Install\ Certificates.command ; exit;

Run the script build.py, the output application is located in the dist/ folder

- Prerequisites

It is necessary to build the image with Raspberry Pi Imager to customize the OS:

  • General menu:

    • Hostname
    • User definition
    • WIFI setup

image

  • Services menu:

    • Activation ssh

image

Tip: Find the IP address of the pi and run an ssh cmd, this will add the pi to the authorized host and allow you to resolve the name

- Usage

Configure the host file if necessary, default value:

  • "ansible_host": "raspberrypi"
  • "ansible_port": 22
  • "ansible_user": "pi"

Configure the raspi_config_playbook.yml file

Variable details

---
- hosts:
    - pi
  become: true

  vars:
    rasp_extra_packages:
      - python3
    CAMERA: true
    rasp_ssh_port : 2222
    rasp_firewall: true
    rasp_open_firewall_port:
      - 80
      - 8080
  roles:
    - raspberry_pi_config

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published