From dcf4fa13f9cf556924a7f50149b847ba7d4c5c87 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 2 Oct 2022 12:06:26 +0200 Subject: [PATCH] Set firefox as default browser --- roles/firefox/tasks/main.yml | 4 +++- roles/firefox/tasks/update-alternatives.yml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 roles/firefox/tasks/update-alternatives.yml diff --git a/roles/firefox/tasks/main.yml b/roles/firefox/tasks/main.yml index 50b9808..995ea6b 100644 --- a/roles/firefox/tasks/main.yml +++ b/roles/firefox/tasks/main.yml @@ -3,4 +3,6 @@ when: ansible_distribution == "Ubuntu" and ansible_distribution_version != "22.04" - import_tasks: ppa.yml - when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "22.04" \ No newline at end of file + when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "22.04" + +- import_tasks: update-alternatives.yml \ No newline at end of file diff --git a/roles/firefox/tasks/update-alternatives.yml b/roles/firefox/tasks/update-alternatives.yml new file mode 100644 index 0000000..e20c83a --- /dev/null +++ b/roles/firefox/tasks/update-alternatives.yml @@ -0,0 +1,3 @@ +- name: Set firefox as x-www-browser + become: yes + cmd: update-alternatives --set x-www-browser /usr/bin/firefox \ No newline at end of file