Skip to content

Conversation

sxa
Copy link
Member

@sxa sxa commented Nov 28, 2024

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 task message when we try to run them using the ansible supplied 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

C:\cygwin64\bin\git clone https://github.com/sxa/infrastructure -b windows_docker_support c:/infrastructure & \
to create the containers. This branch (which has now been merged) did not have the above two PRs so hasn't been causing a problem. This error was found while attempting to bring that up to date so we can use the master branch going forward. Also noting that there is one other issue relating to the ant-contrib download being unreliable that will also need to be addressed - I've worked around that in another branch for now.

Checklist

@sxa sxa added this to the 2024-11 (November) milestone Nov 28, 2024
@sxa sxa requested a review from steelhead31 November 28, 2024 12:36
@sxa sxa self-assigned this Nov 28, 2024
@sxa
Copy link
Member Author

sxa commented Nov 28, 2024

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.

@sxa sxa marked this pull request as draft November 29, 2024 16:40
@sxa
Copy link
Member Author

sxa commented Feb 11, 2025

Note: This was added as part of #3726 so we need to re-evaluate whether it's necessary.

@sxa sxa modified the milestones: 2024-11 (November), For review Jun 6, 2025
@sxa sxa mentioned this pull request Sep 30, 2025
2 tasks
Copy link
Contributor

@steelhead31 steelhead31 left a comment

Choose a reason for hiding this comment

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants