winPB: Stop using ansible.windows as prefix to tasks#3828
winPB: Stop using ansible.windows as prefix to tasks#3828sxa wants to merge 2 commits intoadoptium:masterfrom
Conversation
Signed-off-by: Stewart X Addison <sxa@redhat.com>
Signed-off-by: Stewart X Addison <sxa@redhat.com>
|
Noting that the same error is showing up with the first task in the Incredibuild role with this change, so it will require a rethink. |
|
Note: This was added as part of #3726 so we need to re-evaluate whether it's necessary. |
There was a problem hiding this comment.
I think the fully qualified names are to explicitly use the correct tasks. Since ansible 2.9 all the tasks are organised into collections, being explicit prevents any issues with namespaces. I think prefixing names, is considered best practice ( and maybe the linters complain? ) we could look to explicitly specify which collections are used with
collections:
- ansible.windows
However this can only be done, after we move specifically our vagrant infrastructure to a later version of ansible. This collections tag can be specified at playbook level.
The Windows playbooks are not currently able to run using the setup process for running our windows docker containers as they fail with a
ERROR! no action detected in taskmessage when we try to run them using theansiblesupplied with a default cygwin install. The implementatino of fully qualifications were done under:I've got a feeling there was a reason we did this but I'm not sure what it is and it's currently causing me a problem, so I'd like to remove the full qualification for now, unless there is another simple solution.
NOTE: Up til now we've been using a fixed version of the playbooks as specified in
infrastructure/ansible/docker/Dockerfile.win2022
Line 49 in e23e780
Checklist