summaryrefslogtreecommitdiffstats
path: root/roles/firefox/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-11-24 22:47:16 +0100
committerAhmed Abdelhalim <[email protected]>2025-11-25 10:10:39 +0100
commitd7f8dbceaf14f68fcb3e81f18513be3803f5f221 (patch)
tree4114301ce6666f2e969141edd25e1f593a7f0755 /roles/firefox/tasks
parentbb251e5e6066d4eb89cdb70f682dfe7a88030a13 (diff)
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)
Diffstat (limited to 'roles/firefox/tasks')
-rw-r--r--roles/firefox/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
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"