diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-21 16:29:00 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-21 16:29:35 +0100 |
| commit | 6c778bdcc5f8393306e748ad47c631bf86684cb5 (patch) | |
| tree | 2891108d7c418db873df35df838aab07e55f68c7 /roles/chromium/tasks | |
| parent | db69224d13d6a99bfcad7faed6ad337e8b4d98d8 (diff) | |
Configure default browser
Diffstat (limited to 'roles/chromium/tasks')
| -rw-r--r-- | roles/chromium/tasks/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/chromium/tasks/main.yml b/roles/chromium/tasks/main.yml index 5654fbb1..8d7c583f 100644 --- a/roles/chromium/tasks/main.yml +++ b/roles/chromium/tasks/main.yml @@ -4,3 +4,9 @@ ansible.builtin.package: name: "chromium" state: "present" + +- name: "Set chromium as default" + ansible.builtin.command: + cmd: "xdg-settings set default-web-browser chromium.desktop" + changed_when: false + when: chromium_is_default | default(false) |
