Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions roles/dlrn_promote/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
ansible.builtin.import_tasks: install.yml

- name: Get hash related data from repo_setup role
vars:
# Override basedir to use target host's HOME, not the zuul executor's path
# lookup('env', 'HOME') runs on the control node (zuul executor), but
# ansible_env.HOME comes from the target host's gathered facts
# Required when executing from zuul executor, post.yml file.
cifmw_repo_setup_basedir: "{{ ansible_env.HOME | default('/home/' + ansible_user) }}/ci-framework-data"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and instead of removing default values and pointing to default values from group_vars we are doing workaround...

ansible.builtin.include_role:
name: repo_setup

Expand Down
6 changes: 6 additions & 0 deletions roles/dlrn_report/tasks/dlrn_report_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
cifmw_repo_setup_promotion: "{{ cifmw_dlrn_report_promote_source }}"

- name: Get hash related data from repo_setup role
vars:
# Override basedir to use target host's HOME, not the zuul executor's path
# lookup('env', 'HOME') runs on the control node (zuul executor), but
# ansible_env.HOME comes from the target host's gathered facts
# Required when executing from zuul executor, post.yml file.
cifmw_repo_setup_basedir: "{{ ansible_env.HOME | default('/home/' + ansible_user) }}/ci-framework-data"
ansible.builtin.include_role:
name: repo_setup

Expand Down