-
Notifications
You must be signed in to change notification settings - Fork 138
feat(/home/zuul): Replace /home/zuulpath Root and playbooks files #3396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(/home/zuul): Replace /home/zuulpath Root and playbooks files #3396
Conversation
[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 |
reproducer and dcn tested at: https://issues.redhat.com/browse/OSPRH-19989 |
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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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') }}"
?
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
ae5c4ed
to
62453d9
Compare
We're moving /home/zuul hardcoded paths from root-level files and ocurrences in files at playbook folder.