staticdev.firefox

Ansible角色:Firefox

测试

从官方PPA库安装Firefox,并可选择创建带有扩展的个人资料。 扩展会被安装,但需要手动在Firefox中启用。

注意:在Debian上,这将删除ESR版本,以便使用PPA中更新的版本。

要求

在远程主机上需要requests来安装扩展。 支持远程主机的操作系统,请参见ansible-galaxy staticdev/firefox

角色变量

默认个人资料目录

firefox_home: ~/.mozilla/firefox

个人资料设置

firefox_profiles是一个对象,个人资料名称作为字段。对于每个个人资料,可以在extensions字段下指定扩展名称的列表。这些扩展将为该个人资料安装。其次,可以在preferences字段下指定偏好设置的键值对列表。这些也是特定于个人资料的,将放入或修改该个人资料的user.js文件。

示例剧本

- hosts: localhost

  vars:
    firefox_profiles:
      default:
        extensions:
          - ublock-origin
        preferences:
          network.cookie.cookieBehavior: 1
          privacy.donottrackheader.enabled: true
          datareporting.healthreport.uploadEnabled: false
      secondprofile:
        extensions:
          - adblock-plus
        preferences:
          privacy.donottrackheader.enabled: false
          privacy.trackingprotection.enabled: false
          signon.rememberSignons: false
          datareporting.healthreport.uploadEnabled: false

  roles:
    - staticdev.firefox

许可证

MIT

作者信息

staticdev

致谢

这个Ansible角色是基于ansible-firefox的修改版本,最初由GitHub用户unrblt创建,并由basvandenbrink修改。

关于项目

Create and configure Firefox profiles and download extensions.

安装
ansible-galaxy install staticdev.firefox
许可证
mit
下载
3.9k
拥有者