refactor: reorganize Ansible tasks for better structure and include common package installations
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 40s
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 40s
This commit is contained in:
18
config/ansible/tasks/workstations/brave.yml
Normal file
18
config/ansible/tasks/workstations/brave.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- name: Check if Brave is installed
|
||||
ansible.builtin.command: brave-browser --version
|
||||
register: brave_check
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- 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
|
||||
Reference in New Issue
Block a user