{"id":24755067,"url":"https://github.com/francois-le-ko4la/ansible-raspberry","last_synced_at":"2026-04-11T01:55:56.839Z","repository":{"id":84214965,"uuid":"408232312","full_name":"francois-le-ko4la/ansible-raspberry","owner":"francois-le-ko4la","description":"My ansible playbooks","archived":false,"fork":false,"pushed_at":"2022-01-06T11:23:01.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T06:13:27.970Z","etag":null,"topics":["ansible","raspberry-pi","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/francois-le-ko4la.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":"2021-09-19T20:41:58.000Z","updated_at":"2023-01-23T01:20:02.000Z","dependencies_parsed_at":"2023-06-26T01:16:05.787Z","dependency_job_id":null,"html_url":"https://github.com/francois-le-ko4la/ansible-raspberry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/francois-le-ko4la/ansible-raspberry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francois-le-ko4la%2Fansible-raspberry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francois-le-ko4la%2Fansible-raspberry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francois-le-ko4la%2Fansible-raspberry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francois-le-ko4la%2Fansible-raspberry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/francois-le-ko4la","download_url":"https://codeload.github.com/francois-le-ko4la/ansible-raspberry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francois-le-ko4la%2Fansible-raspberry/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265066119,"owners_count":23706062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ansible","raspberry-pi","ubuntu"],"created_at":"2025-01-28T12:34:21.573Z","updated_at":"2026-04-11T01:55:51.794Z","avatar_url":"https://github.com/francois-le-ko4la.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-raspberry\n\nSetup Ubuntu/Raspberry with Ansible\n\n## Why ?\nThis script makes it possible to automate the tasks to be performed after a fresh ubuntu installation on Raspberry. You can homogenize the configuration of several environment.\n\nThis script allows you to:\n- [x] Update/upgrade (disable by default)\n- [x] Disable the swap (SD card/SSD ^^)\n- [x] Install Pi4 packages (not installed by default/ubuntu)\n  - rpi-eeprom\n  - raspi-config\n  - linux-firmware-raspi2\n- [x] Setup postfix with a GMail account\n- [x] Setup unattended upgrades\n- [x] Setup config.txt (server Vs Desktop)\n- [x] Install Docker (server)\n- [x] Install Portenaire (server)\n- [x] Install Adguard-home (server)\n- [x] Install Wireguard (server)\n- [x] Install multimedia packages (Desktop)\n  - ubuntu-restricted-extras\n  - libavcodec-extra\n  - vlc\n  - libgles2-mesa\n  - libgles2-mesa-dev\n  - xorg-dev\n  - caffeine\n  - gnome-shell-extension-caffeine\n- [x] Install Caffein / Tor Browser (Desktop)\n  - Caffein will be automatically started\n  - Tor is added in the favorites\n\nYou can use, modify, change, do your coffee,... ON YOUR OWN RISKS !!!\nThis script is provided in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\n## How ?\n### Target env\n\n- Enable `ssh`\n```console\nsudo apt install openssh-server\n```\n- Create a `Sudo User`\n```console\nsudo adduser \u003cusername\u003e\nsudo usermod -aG sudo \u003cusername\u003e\nsudo su - \u003cusername\u003e\nexit\n```\nIn my environment, I use `svc_ansible`.\n\n### Install ansible\nInstall ansible and requirements:\n```console\nsudo apt install ansible sshpass\nsudo ansible-galaxy collection install community.general\n```\n### Clone git repository\n\n```console\ncd /tmp\ngit clone https://github.com/francois-le-ko4la/ansible-raspberry.git\n```\n### Prepare playbooks\n\n- change directory\n```console\ncd ansible-raspberry\n```\n- Modify the `hosts` file according to your needs.\n```dosini\n[server]\n192.168.1.250\n\n[adguard]\n192.168.1.250\n\n[desktop]\n192.168.1.145\n```\n- Edit group_vars/all.yml\n```yaml\n### Ansible user to manage target\nansible_user: svc_ansible\n\n### Desktop user\nstd_user: \"internet\"\n#password is generated and get from /etc/shadow\nstd_password: '$6$zez9DIWqyC6OYNu2$.6s8qTJPqgIvZnaFDlPlmYZkKb.zCnu3pyHDhShIxR.w3xQbXTTVTAyZ3ysDtag9ahMX8NZG7y.JU4wkqyxPx0'\n\n### Postfix\n# You should use an app password : https://support.google.com/mail/answer/185833?hl=en-GB\npostfix_smtp_user: \"XXX@gmail.com\"\npostfix_smtp_password: \"lmrzrmovuymtrebr\"\n\n### Unattended - Email\nunattended_mail: \"XXX\"\n```\n\u003e In order to setup postfix, you should use an app password : https://support.google.com/mail/answer/185833?hl=en-GB\n\n### Use playbook\n\nRun : `./run.sh` or `ansible-playbook -i hosts playbook.yml -kK -vvv`\n\nI used also 3 tags : packages, configuration, update.\n- `ansible-playbook -i hosts playbook.yml -kK` : do everything except the update\n- `ansible-playbook -i hosts playbook.yml -kK --tags packages` : install/check the packages\n- `ansible-playbook -i hosts playbook.yml -kK --tags configuration` : set/check the configuration\n- `ansible-playbook -i hosts playbook.yml -kK --tags update` : update the packages and pi firmware (never by default)\n\n## Ubuntu release\n21.04 tested/validated\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancois-le-ko4la%2Fansible-raspberry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancois-le-ko4la%2Fansible-raspberry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancois-le-ko4la%2Fansible-raspberry/lists"}