From d7f8dbceaf14f68fcb3e81f18513be3803f5f221 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 24 Nov 2025 22:47:16 +0100 Subject: Fix role to use ansible_user_id special variable instead of USER env The USER env is failing on CI, so reverting back to using ansible_user_id special variable, the ansible_user also failed as the CI doesn't have ssh connection (at least not during the tests, and therefore the ansible_user is undefined) --- roles/firefox/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles') diff --git a/roles/firefox/tasks/main.yml b/roles/firefox/tasks/main.yml index be6c3e40..39845983 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_env.USER }}-profile" + ansible.builtin.command: "firefox --headless -no-remote -CreateProfile {{ ansible_user_id }}-profile" args: - creates: "{{ firefox_folder }}/*{{ ansible_env.USER }}-profile/prefs.js" + creates: "{{ firefox_folder }}/*{{ ansible_user_id }}-profile/prefs.js" - name: "Install browserpass extension for Firefox" ansible.builtin.include_tasks: "install_browserpass.yml" -- cgit v1.2.3