• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

unrblt/ansible-role-firefox: Ansible role to install firefox with multiple profi ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

unrblt/ansible-role-firefox

开源软件地址:

https://github.com/unrblt/ansible-role-firefox

开源编程语言:

Python 100.0%

开源软件介绍:

Ansible Role: Firefox

Installs firefox and optionally creates profiles with extensions. Extensions are installed but need to be manually enabled from firefox. It's only been tested in Ubuntu, but should work on other systems as long as you set the right packages in firefox_packages.

Requirements

xmltodict and requests are required on the remote host to install extensions.

Role Variables

firefox_home: ~/.mozilla/firefox

Default directory for profiles.

firefox_packages:
  - firefox
  - firefox-locale-en
  - firefox-locale-es

Packages to install.

firefox_profiles: []
#  - name: alice
#    extensions:
#      - random-agent-spoofer
#  - name: bob
#    extensions: []

List of profiles with extensions. extensions is a list of extension names to download and it needs to be defined (use an empty list if you don't want to install any extensions).

firefox_preferences: {}
#  browser.safebrowsing.enabled: 'false'

Dictionary with preference and value. This preferences are written to a user.js file in the profile directory which means any change you make to that setting in the options and preference dialogs or via about:config will be lost when you restart firefox. This settings apply to every profile.

firefox_profile_preferences: {}
#  alice:
#    browser.safebrowsing.enabled: 'false'
#    browser.safebrowsing.malware.enabled: 'false'

Dictionary with preference and value (keyed by profile name). This preferences will be merged with firefox_preferences.

Example Playbook

- hosts: localhost

  vars:
    firefox_profiles:
      - name: alice
        extensions:
          - random-agent-spoofer
          - https-everywhere
          - noscript
      - name: bob
        extensions: []
    firefox_preferences:
      browser.safebrowsing.enabled: 'true'
      geo.ip: 'false'
      browser.search.defaultenginename: "'DuckDuckGo'"
    firefox_profile_preferences:
      alice:
        browser.safebrowsing.enabled: 'false'
        browser.safebrowsing.malware.enabled: 'false'

  pre_tasks:
    - name: install role requirements
      pip: name={{ item }} state=present
      with_items:
        - xmltodict
        - requests

  roles:
     - firefox

License

GPLv2




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap