-
Notifications
You must be signed in to change notification settings - Fork 228
Refactor integration-related tasks #483
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
Conversation
This change makes the code tidier and user-facing messages prettier. It also ensures that Windows tasks will only be imported on Windows, thus making the ansible.windows collection optional.
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.
I guess at least the correction on calling the macos file on top condition must be changed, thanks in advance
tasks/integration/windows.yml
Outdated
- name: Set Agent user for integration commmand | ||
set_fact: | ||
integration_command_user: "{{ integration_command_user_windows }}" | ||
when: ansible_facts.os_family == "Windows" |
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.
This (and the other when conditions mentioning "Windows") are unnecessary as already checked to call this file, correct?
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.
Yes, I forgot to remove the conditions from this file, thanks for pointing it out!
Co-authored-by: Nicolas Schweitzer <[email protected]>
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.
LGTM!
This change makes the code tidier and user-facing messages prettier. It also ensures that Windows tasks will only be imported on Windows, thus making the ansible.windows collection optional.
This fixes #450.