All Projects → mikolak-net → ansible-raspi-config

mikolak-net / ansible-raspi-config

Licence: other
Ansible role for configuring a headless Raspberry Pi server.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ansible-raspi-config

ansible-role-solita.jenkins
Ansible role: Jenkins, completely configured with Ansible
Stars: ✭ 21 (-70.83%)
Mutual labels:  ansible-role
CIS-Ubuntu-20.04-Ansible
Ansible Role to Automate CIS v1.1.0 Ubuntu Linux 18.04 LTS, 20.04 LTS Remediation
Stars: ✭ 150 (+108.33%)
Mutual labels:  ansible-role
ansible-dnsmasq
Enter description of Ansible role
Stars: ✭ 17 (-76.39%)
Mutual labels:  ansible-role
ansible-role-k8s
This role render an arbitrary number of Jinja2 templates and deploys or removes them to/from Kubernetes clusters.
Stars: ✭ 26 (-63.89%)
Mutual labels:  ansible-role
ansible-github actions runner
Ansible Role to deploy GitHub Actions self-hosted runner
Stars: ✭ 76 (+5.56%)
Mutual labels:  ansible-role
ansible-ossec-server
Installing and maintaining the ossec-server for RedHat/Debian/Ubuntu.
Stars: ✭ 29 (-59.72%)
Mutual labels:  ansible-role
ansible-role-win updates
Install Windows updates using Ansible.
Stars: ✭ 24 (-66.67%)
Mutual labels:  ansible-role
ansible-rclone
ansible role for rclone :: https://galaxy.ansible.com/stefangweichinger/ansible_rclone
Stars: ✭ 95 (+31.94%)
Mutual labels:  ansible-role
lykops
lykops是一套web可视化的运维自动化项目,基于python3+django开发的。可视化、简化执行ansible任务,并提供详细的任务执行报告。
Stars: ✭ 129 (+79.17%)
Mutual labels:  ansible-role
ansible-role-intellij
Ansible role for installing the IntelliJ IDEA IDE
Stars: ✭ 39 (-45.83%)
Mutual labels:  ansible-role
Ansible-Veeam
My Ansible Playbooks, Roles and Modules for Veeam
Stars: ✭ 21 (-70.83%)
Mutual labels:  ansible-role
ansible-role-docker-ce
Ansible role to install Docker CE on AlmaLinux/Rocky/CentOS/Fedora/RHEL(Redhat)/Ubuntu/Debian/Mint/Raspbian
Stars: ✭ 73 (+1.39%)
Mutual labels:  ansible-role
ansible-minecraft
Ansible role for provisioning a vanilla Minecraft server
Stars: ✭ 53 (-26.39%)
Mutual labels:  ansible-role
ansible-digitalocean
An ansible role that creates a DigitalOcean droplet and returns the droplet's IP address for further use in playbooks
Stars: ✭ 20 (-72.22%)
Mutual labels:  ansible-role
ansible-role-tor
✳️🛡️ Securely build a system Tor and optionally configure numerous high-security Onion services.
Stars: ✭ 22 (-69.44%)
Mutual labels:  ansible-role
pvwa
Ansible role to deploy Cyberark Password Vault Web Access
Stars: ✭ 16 (-77.78%)
Mutual labels:  ansible-role
ansible-role-go
Ansible role - Go
Stars: ✭ 23 (-68.06%)
Mutual labels:  ansible-role
ansible-role-postfix
Ansible role for Postfix MTA
Stars: ✭ 33 (-54.17%)
Mutual labels:  ansible-role
ansible-snort
No description or website provided.
Stars: ✭ 13 (-81.94%)
Mutual labels:  ansible-role
ansible-kafka
Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
Stars: ✭ 56 (-22.22%)
Mutual labels:  ansible-role

raspi_config

Ansible Role Ansible Role

A configuration role for Raspbian-based Raspberry Pi machines. Provides the following features:

  • exposes and/or emulates those raspi-config options that are most relevant to headless servers (see Rule Variables),
  • allows to add user-specified settings to /boot/config.txt via the raspi_config_other_options variable,
  • warns about leaving the default credentials accessible.

Requirements

None, other than installing the role itself. To do that, create a requirements.yml file next to your playbook with the following contents:

- name: mikolak-net.raspi_config

(note the _ underscore instead of the - hyphen in raspi_config)

and then run:

ansible-galaxy install -r requirements.yml

The role and its dependencies should be now installed and ready to reference in your playbook via the name given in the requirements file.

Note: you can also install the role directly:

ansible-galaxy install mikolak-net.raspi_config

but creating a requirements file is just good practice.

Role Variables

All user variables reside in defaults/main.yml. Currently the following are available:

# perform full update+upgrade
raspi_config_update_packages: yes
# have the FS fill the SD card
raspi_config_expanded_filesystem: yes
# how much memory should be owned by the GPU (vs RAM)
raspi_config_memory_split_gpu: 16
#currently sets Pi2 OC setting if applicable
raspi_config_ensure_optimal_cpu_params: yes
# set global locale
raspi_config_locale: en_US.UTF-8
# set timezone
raspi_config_timezone: UTC
# list of services that should be restarted if the timezone is changed
raspi_config_timezone_dependent_services: []
# set hostname
raspi_config_hostname: pi
# ensure camera support is on - CURRENTLY UNVERIFIED
raspi_config_enable_camera: no
# specify whether to fail deployment when user/password is default
# ignored if "raspi_config_replace_user" is set (warning will still display)
raspi_config_fail_on_auth_test: yes
# user to replace the default "pi" user with
# NOTE: if you use this for the first time as "pi", any post_tasks will fail!
raspi_config_replace_user:
  name:
  path_to_ssh_key: #LOCAL path to your public key file
# wait this many seconds before forcing connection retry after reboot
raspi_config_reboot_max_wait_time: 300
# use this to add any additional options to the config in raw form
raspi_config_other_options: {}

Dependencies

See dependencies in meta/main.yml.

Example Playbook

- hosts: pi*
  remote_user: pi
  become: true
  roles:
     - role: mikolak-net.raspi_config
       raspi_config_replace_user:
         name: mainuser
         path_to_ssh_key: "~/.ssh/my_pub_key_id_rsa.pub"

License

BSD

Author Information

Issues should be reported on the project page.

Thanks to:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].