refactor: adjusted brave installation to use proper standards

This commit is contained in:
Menno van Leeuwen 2025-01-21 00:01:51 +01:00
parent c7b27b6432
commit b9cd780821
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -4,6 +4,15 @@
changed_when: false
failed_when: false
- name: Install Brave Browser
shell: curl -fsS https://dl.brave.com/install.sh | sh -s -- -y
- name: Download Brave Browser install script
ansible.builtin.get_url:
url: https://dl.brave.com/install.sh
dest: /tmp/install_brave.sh
mode: '0755'
when: brave_check.rc != 0
- name: Install Brave Browser
ansible.builtin.command: bash -c 'set -o pipefail && /tmp/install_brave.sh -y'
when: brave_check.rc != 0
args:
creates: /usr/bin/brave-browser