Role to install (by default) Brave browser package or uninstall (if passed as var) on Debian based systems and EL based systems.
None.
Available variables are listed below (located in defaults/main.yml
):
bravebrowser_app: brave-browser
bravebrowser_app_desired_state: present
# Debian family based
bravebrowser_repo_debian_url: "https://brave-browser-apt-release.s3.brave.com"
bravebrowser_repo_debian_gpg_key: brave-browser-archive-keyring.gpg
bravebrowser_repo_debian_gpg_key_url: "{{ bravebrowser_repo_debian_url }}/{{ bravebrowser_repo_debian_gpg_key }}"
bravebrowser_repo_debian_gpg_key_dest: "/usr/share/keyrings/{{ bravebrowser_repo_debian_gpg_key }}"
bravebrowser_repo_debian: "deb [signed-by={{ bravebrowser_repo_debian_gpg_key_dest }} arch=amd64] {{ bravebrowser_repo_debian_url }} stable main"
bravebrowser_repo_debian_filename: "{{ bravebrowser_app }}"
bravebrowser_repo_debian_desired_state: present
# EL family based
bravebrowser_repo_el: "https://brave-browser-rpm-release.s3.brave.com/x86_64/"
bravebrowser_repo_el_name: brave-browser
bravebrowser_repo_el_description: brave-browser
bravebrowser_repo_el_gpgkey: https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
bravebrowser_repo_el_gpgcheck: yes
bravebrowser_repo_el_enabled: yes
bravebrowser_repo_el_filename: "{{ bravebrowser_app }}"
bravebrowser_repo_el_desired_state: present
Variable | Description |
---|---|
bravebrowser_app | Name of Brave browser application package require to be installed i.e. brave-browser |
bravebrowser_app_desired_state | State of the Brave browser package. Whether to install, verify if available or to uninstall (i.e. ansible apt module values: present , latest , or absent ) |
bravebrowser_repo_debian_url | Brave browser repo URL for Debain family systems. |
bravebrowser_repo_debian_gpg_key | Brave browser key required on Debian family systems. |
bravebrowser_repo_debian_gpg_key_url | Brave browser gpg key URL required on Debian family system |
bravebrowser_repo_debian_gpg_key_dest | Brave browser gpg key path to store locally on Debian family system |
bravebrowser_repo_debian | Brave browser repo string for Debain family systems. |
bravebrowser_repo_debian_filename | Name of the repository file that will be stored at /etc/apt/sources.list.d/ on Debian based systems. |
bravebrowser_repo_debian_desired_state | present indicates creating the repository file if it doesn't exist on Debian based systems. Alternative is absent (not recommended as it will prevent from installation of brave-browser package). |
bravebrowser_repo_el | Repository baseurl for Brave browser on EL based systems. |
bravebrowser_repo_el_name | Repository name for Brave browser on EL based systems. |
bravebrowser_repo_el_description | Description to be added in EL based repository file for Brave browser. |
bravebrowser_repo_el_gpgkey | Brave browser GPG key required on EL family systems |
bravebrowser_repo_el_gpgcheck | Boolean for whether to perform gpg check against Brave browser on EL based systems. |
bravebrowser_repo_el_enabled | Boolean to set so that Brave browser repository is enabled on EL based systems. |
bravebrowser_repo_el_filename | Name of the repository file that will be stored at /yum/sources.list.d/brave-browser.repo on EL based systems. |
bravebrowser_repo_el_desired_state | present indicates creating the repository file if it doesn't exist on EL based systems. Alternative is absent (not recommended as it will prevent from installation of brave-browser package). |
None
For default behaviour of role (i.e. installation of brave-browser package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.bravebrowser
For customizing behavior of role (i.e. installing/upgrading to latest version of teams as an example) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.bravebrowser
vars:
bravebrowser_apps_desired_state: latest
For customizing behavior of role (i.e. un-installation of brave-browser package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.bravebrowser
vars:
bravebrowser_apps_desired_state: absent
This role was created by Ali Muhammad.