Prepares a Raspberry Pi to be used as an information display
Go to file
2022-07-09 15:26:33 -05:00
roles/display [ADD] Additional chromium flags taken from fullpageos 2022-07-09 15:26:33 -05:00
hosts Creates a role to install the display 2022-07-09 15:21:17 -05:00
local.yml Creates a role to install the display 2022-07-09 15:21:17 -05:00
README.md first commit 2022-07-09 14:34:34 -05:00

Ansible role to set a Raspberry Pi as an information display

To be used from a cloud-init script when booting the Raspberry Pi for the first time.

The script uses Ansible-pull to run the playbook from this repo.

Cloud-init script

Should be stored in the SD card used to boot the Raspberry Pi, in the file /system-boot/user-data:

config:
  user.vendor-data: |
    #cloud-config
    package_upgrade: true
    packages:
      - ansible
    users:
      - name: sistemas
        ssh-import-id: gh:jorgeegomez
    write_files:
      - encoding: gzip
        owner: root:root
        path: /root/.ssh/id_ed25519.pub
        permissions: '0644'
        content: !!binary |
          H4sIC ... 🔒 gzipped and base64-encoded public key,
                    registered in Gitea as deploy key for this repo ... AAA==
      - encoding: gzip
        owner: root:root
        path: /root/.ssh/id_ed25519
        permissions: '0600'
        content: !!binary |
          H4sIC ... 🔒 corresponding private key, gzipped and
                    base64-encoded ... AAA==
      - encoding: gzip
        owner: root:root
        path: /root/.ssh/known_hosts
        permissions: '0644'
        content: !!binary |
          H4sICPS ... 🔒 gzipped and base64-encoded host key for gitea ... AAA==
    runcmd:
      - [ ansible-pull, -U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-raspberry-display.git" ]