From 95dc690d4080e814fa6d7afce99808a171ee4964 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 25 Nov 2025 10:15:01 +0100 Subject: Rename the firefox created profile to ansible-profile to avoid conflict To avoid potential conflict when a user already have a profile named and configured for them, it's simpler to use a defined ansible profile that also indicates that the profile is automated --- roles/firefox/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/firefox/tasks/main.yml b/roles/firefox/tasks/main.yml index 39845983..00cfdd2e 100644 --- a/roles/firefox/tasks/main.yml +++ b/roles/firefox/tasks/main.yml @@ -9,9 +9,9 @@ state: "present" - name: "Create Firefox profile" - ansible.builtin.command: "firefox --headless -no-remote -CreateProfile {{ ansible_user_id }}-profile" + ansible.builtin.command: "firefox --headless -no-remote -CreateProfile ansible-profile" args: - creates: "{{ firefox_folder }}/*{{ ansible_user_id }}-profile/prefs.js" + creates: "{{ firefox_folder }}/*ansible-profile/prefs.js" - name: "Install browserpass extension for Firefox" ansible.builtin.include_tasks: "install_browserpass.yml" -- cgit v1.2.3