Ansible playbook for personal computer configuration

I can potentially load a custom Firefox profile and load the extension:

- name: Setup Firefox policies
  hosts: localhost
  become: yes

  tasks:
    - name: Ensure Firefox policies directory exists
      file:
        path: /usr/lib/firefox/distribution
        state: directory
        mode: '0755'

    - name: Deploy Firefox policies JSON
      copy:
        dest: /usr/lib/firefox/distribution/policies.json
        content: |
          {
            "policies": {
              "ExtensionSettings": {
                "*": {
                  "blocked_install_message": "Extension installation disabled by policy.",
                  "install_sources": ["https://addons.mozilla.org/*"],
                  "installation_mode": "allowed"
                },
                "2b4e552d544508781d3256909f7e7dd2342dacce@jetpack": {
                  "installation_mode": "force_installed",
                  "install_url": "https://addons.mozilla.org/firefox/downloads/file/3751767/1password_x_password_manager-2.0.0.xpi"
                }
              }
            }
          }

That’s cool, and I will probably use Firefox policies.json for homelearning as a base for my own setup. :smiling_face_with_sunglasses:

I wonder if it should just be a file on it’s own, and I reference it from the same repo or whatever, and copy it over. :thinking: