{"id":22311181,"url":"https://github.com/joymon/ansible-raspberry-home-nas-plex","last_synced_at":"2026-06-23T12:32:14.264Z","repository":{"id":212124157,"uuid":"725176553","full_name":"joymon/ansible-raspberry-home-nas-plex","owner":"joymon","description":"Ansible scripts to setup home NAS on Raspberry Pi","archived":false,"fork":false,"pushed_at":"2024-07-15T15:42:03.000Z","size":34,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T02:14:21.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joymon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-29T15:41:04.000Z","updated_at":"2024-07-15T15:42:07.000Z","dependencies_parsed_at":"2023-12-12T18:46:06.353Z","dependency_job_id":"2cf4b56f-573e-4351-b35d-8b00b9bd5f69","html_url":"https://github.com/joymon/ansible-raspberry-home-nas-plex","commit_stats":null,"previous_names":["joymon/ansible-raspberry-home-nas-plex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joymon/ansible-raspberry-home-nas-plex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joymon%2Fansible-raspberry-home-nas-plex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joymon%2Fansible-raspberry-home-nas-plex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joymon%2Fansible-raspberry-home-nas-plex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joymon%2Fansible-raspberry-home-nas-plex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joymon","download_url":"https://codeload.github.com/joymon/ansible-raspberry-home-nas-plex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joymon%2Fansible-raspberry-home-nas-plex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34688069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T21:18:00.633Z","updated_at":"2026-06-23T12:32:14.245Z","avatar_url":"https://github.com/joymon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible - Configure Raspberry Pi 4 as home NAS with Plex\nAnsible scripts to setup home NAS on Raspberry Pi\n- Require primary and secondary drives to backup every day 1 AM local time\n- Require an email address credentials to send daily backup status\n\n# Files to replace\n\n- Replace your hosts in the hosts.ini file (localhost if running from same machine)\n- Adjust the `files/nas-rsync.sh` file with your folders to sync. This tool is not synching entire drive but selected folders.\n  - Make sure the above used folders are available in both the drives. \n- Replace the drive labels in `group_vars/all.yml`\n  - Existing disks, drives and mount points can be seen using command `lsblk -o name,label,mountpoint,FSTYPE,size,FSUSE%,uuid`\n\n# Running directly on RasPi - without controller node\n\n## Prerequisite - On a fresh RasPi after image is deployed\n- Install Ansible (Check tested versions below)\n\n## Running \n- Clone this repo\n- Do the replacements in required files\n- Run the playbook rpi-playbook.yml file as follows\n    - `ansible-playbook rpi-playbook.yml -i hosts.ini -e \"email_password=\u003cYOUR FROM EMAIL PASS\u003e\"`\n\n# Running from controller node to setup remote RasPi\nWe need to setup both the controller and RasPi.\n## Prerequisites - On a fresh RasPi after image is deployed\n- Enable SSH in Raspberry\n\n## Prerequisites - On the controller machine (Usually named as [jump box](https://en.wikipedia.org/wiki/Jump_server))\n- Install Ansible (Check tested versions below)\n- Create SSH Pair.\n- Start the ssh-agent service\n    - `Set-Service ssh-agent -StartupType Automatic`\n- Add private key to ssh agent\n    - `ssh-add `\n- Copy the public key from above created SSH key pair to remote RasPi\n    - `ssh-copy-id pi@raspberry` (make sure the user and hostname is correct)\n- Install Ansible (Check tested versions below)\n- Additional modules\n  - List the modules `ansible-galaxy collection list`\n- If the above command is not showing `ansible.posix` install using below command. This is needed for mounting\n  - `ansible-galaxy collection install ansible.posix`\n\n## Running (on the controller machine)\n- Clone this repo\n- Do the replacements in required files\n- Run the playbook rpi-playbook.yml file as follows\n    - `ansible-playbook rpi-playbook.yml -i hosts.ini -e \"email_password=\u003cYOUR FROM EMAIL PASS\u003e\"`\n\n# Versions tested\n\nThough mostly it works in other environments, please note that the scripts are tested only in below setup.\n\n- Raspberry 4 Model B (4 GB)\n- Raspberry Pi OS Lite\n  - 64 bit\n  - bookworm\n- Ansible Core 2.16.0\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n- Python 3.10.12\n=======\n- Python 3.10.12\n\n# References\n- https://github.com/mkuthan/raspberry-ansible/tree/master\n- https://github.com/glennklockwood/rpi-ansible/blob/master/host_vars/blackhall.yml\n- https://github.com/notfoundsam/raspberry-plex-ansible\n- https://thepi.io/how-to-set-up-a-raspberry-pi-plex-server/\n- https://elvisciotti.medium.com/install-and-configure-a-raspberry-in-seconds-with-ansible-scrips-a0639ef38e1b\n- https://github.com/HankB/Ansible\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e c107caf67427b53b6d546a9e25bebcc419cf94fb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoymon%2Fansible-raspberry-home-nas-plex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoymon%2Fansible-raspberry-home-nas-plex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoymon%2Fansible-raspberry-home-nas-plex/lists"}