diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-11-24 22:47:16 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-11-25 10:10:39 +0100 |
| commit | d7f8dbceaf14f68fcb3e81f18513be3803f5f221 (patch) | |
| tree | 4114301ce6666f2e969141edd25e1f593a7f0755 | |
| parent | bb251e5e6066d4eb89cdb70f682dfe7a88030a13 (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)
| -rw-r--r-- | roles/firefox/tasks/main.yml | 4 |
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" |
