From d93323a10db8a7bf9cac9018f3e06784a8c23fdf Mon Sep 17 00:00:00 2001 From: staticdev Date: Sun, 4 Dec 2022 21:23:49 +0100 Subject: [PATCH] Cleanup documentation --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++ README.rst | 88 ------------------------------------------------------ 2 files changed, 70 insertions(+), 88 deletions(-) create mode 100644 README.md delete mode 100644 README.rst diff --git a/README.md b/README.md new file mode 100644 index 0000000..870afa3 --- /dev/null +++ b/README.md @@ -0,0 +1,70 @@ +# Ansible role: Firefox + +[![Tests](https://github.com/staticdev/ansible-role-firefox/workflows/Tests/badge.svg)][tests] + +[tests]: https://github.com/staticdev/ansible-role-firefox/actions?workflow=Tests + +Installs [Firefox] and optionally creates profiles with extensions. +Extensions are installed but need to be manually enabled from Firefox. + +## Requirements + +[requests] is required on the remote host to install extensions. + +## Role Variables + +### Default directory for profiles + +```yaml +firefox_home: ~/.mozilla/firefox +``` + +### Profile settings + +The **firefox_profiles** is object with profile names als fields. For each profile, a list of extension names can be specified under the field **extensions**. These extensions will be installed for that profiles. Secondly, a list of preference key-value pairs can be specified under the field **preferences**. These are also profile-specific and will be put or modified in the **user.js** file of the profile. + +## Example Playbook + +```yaml +- 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 +``` + +## License + +GPLv2 + +## Author Information + +[staticdev] + +## Credits + +This Ansible role is a modified version of the [ansible-firefox] originally created by GitHub user [unrblt] and modified by [basvandenbrink]. + +[ansible-firefox]: https://github.com/basvandenbrink/ansible-firefox +[basvandenbrink]: https://github.com/basvandenbrink +[firefox]: https://www.mozilla.org/firefox/ +[requests]: https://docs.python-requests.org/en/master +[staticdev]: https://github.com/staticdev +[unrblt]: https://github.com/unrblt diff --git a/README.rst b/README.rst deleted file mode 100644 index 7617e37..0000000 --- a/README.rst +++ /dev/null @@ -1,88 +0,0 @@ -Ansible role: Firefox -===================== - -|Tests| - -.. |Tests| image:: https://github.com/staticdev/ansible-role-firefox/workflows/Tests/badge.svg - :target: https://github.com/staticdev/ansible-role-firefox/actions?workflow=Tests - :alt: Tests - -Installs Firefox_ and optionally creates profiles with extensions. -Extensions are installed but need to be manually enabled from Firefox. - -Requirements ------------- - -requests_ is required on the remote host to install extensions. - - -Role Variables --------------- - -Default directory for profiles -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. code:: yaml - - firefox_home: ~/.mozilla/firefox - - -Profile settings -~~~~~~~~~~~~~~~~ - -The **firefox_profiles** is object with profile names als fields. For each profile, a list of extension names can be specified under the field **extensions**. These extensions will be installed for that profiles. Secondly, a list of preference key-value pairs can be specified under the field **preferences**. These are also profile-specific and will be put or modified in the **user.js** file of the profile. - - -Example Playbook ----------------- - -.. code:: yaml - - - 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 - - -License -------- - -GPLv2 - - -Author Information ------------------- - -`staticdev`_ - - -Credits -------- - -This Ansible role is a modified version of the `ansible-firefox`_ originally created by GitHub user `unrblt`_ and modified by `basvandenbrink`_. - - -.. _Firefox: https://www.mozilla.org/firefox/ -.. _ansible-firefox: https://github.com/basvandenbrink/ansible-firefox -.. _basvandenbrink: https://github.com/basvandenbrink -.. _requests: https://docs.python-requests.org/en/master -.. _staticdev: https://github.com/staticdev -.. _unrblt: https://github.com/unrblt