An Ansible role for installing GrapheneOs.
DISCLAIMER: This script comes with no warranty. You could brick your phone.
This role replicates the steps outlined at: https://grapheneos.org/install/cli#prerequisites as of February 2024.
Assumptions:
localhostis a debian-based computer- The playbook is running under Ansible 2.13 or higher
- A GrapheneOS compatible phone is plugged into
localhostvia USB - The phone plugged into
localhostvia USB is OEM unlocked, and booted to the bootloader
- Install the necessary packages on
localhost:
ansible-playbook -K ansible-setup-localhost.ymlThe -K prompts for your sudo password, so that libarchive-tools can be installed via apt.
-
On your phone, unlock OEM.
-
Plug your phone into
localhostvia USB -
Run the install scripts (1, then 2, then 3)
-
Optionally, install the additional packages:
ansible-playbook ansible-setup-extras.yml
./4-install-extras.sh