Skip to content

Conversation

evallesp
Copy link
Contributor

We're moving /home/zuul hardcoded paths from root-level files and ocurrences in files at playbook folder.

@evallesp evallesp requested review from a team as code owners October 10, 2025 10:13
Copy link
Contributor

openshift-ci bot commented Oct 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@evallesp
Copy link
Contributor Author

reproducer and dcn tested at: https://issues.redhat.com/browse/OSPRH-19989

@evallesp
Copy link
Contributor Author

Tested deploy-edpm-reuse change by executing that manually in an already deployed environment. It calculates properly $HOME.

delegate_to: controller-0
ansible.builtin.command:
cmd: "/home/zuul/cleanup-architecture.sh"
cmd: "$HOME/cleanup-architecture.sh"
Copy link
Contributor

@danpawlik danpawlik Oct 15, 2025

Choose a reason for hiding this comment

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

why not {{ ansible_user_dir }}?
Same for others

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because this task is delegated, so we should be fine with various host users.

Copy link
Contributor

Choose a reason for hiding this comment

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

in that case, maybe "{{ lookup('env', 'HOME') }}" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK command would expand env vars, but it's safer bet to move to your suggestion!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems lookup is executed in the ansible control node, so if user differs between delegated host and control host, then we have a problem. I'm mantaining to $HOME

We're moving /home/zuul hardcoded paths from root-level files and ocurrences
in files at playbook folder.
@evallesp evallesp force-pushed the update-cifmw-playbooks-root-home-zuul-vars branch from ae5c4ed to 62453d9 Compare October 15, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants