Skip to content

Conversation

@richm
Copy link
Collaborator

@richm richm commented Dec 29, 2025

There were several reboot modules using a timeout keyword.
There is no such keyword - https://docs.ansible.com/projects/ansible/latest/reference_appendices/playbooks_keywords.html
The reboot used in this collection already use the reboot_timeout and
other timeout parameters - https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/reboot_module.html
It's possible that the timeout was left over from some very old version of Ansible.

Fixes #321

Signed-off-by: Rich Megginson [email protected]

@richm
Copy link
Collaborator Author

richm commented Dec 29, 2025

[citest]

There were several `reboot` modules using a `timeout` keyword.
There is no such keyword - https://docs.ansible.com/projects/ansible/latest/reference_appendices/playbooks_keywords.html
The `reboot` used in this collection already use the `reboot_timeout` and
other timeout parameters - https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/reboot_module.html
It's possible that the `timeout` was left over from some very old version of Ansible.

Fixes redhat-cop#321

Signed-off-by: Rich Megginson <[email protected]>
@richm richm force-pushed the fix-remove-timeout-keyword branch from 745cd9a to 0b6bf8f Compare December 29, 2025 19:45
@richm richm requested a review from spetrosi December 29, 2025 19:45
Copy link
Collaborator

@spetrosi spetrosi left a comment

Choose a reason for hiding this comment

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

Here timeout is a task keyword not specific to modules. So the syntax is correct.
https://docs.ansible.com/projects/ansible/latest/reference_appendices/playbooks_keywords.html#id5

@richm
Copy link
Collaborator Author

richm commented Jan 2, 2026

Here timeout is a task keyword not specific to modules. So the syntax is correct. https://docs.ansible.com/projects/ansible/latest/reference_appendices/playbooks_keywords.html#id5

ok - I guess I missed that - the timeout keyword is not supported in ansible 2.9 - so if we want 2.9 compatibility we will need to remove it. Do we really need it if we are using reboot_timeout?

Copy link
Collaborator

@spetrosi spetrosi left a comment

Choose a reason for hiding this comment

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

Good point about Ansible 2.9. Approved

@richm richm merged commit 46faa7e into redhat-cop:main Jan 5, 2026
22 checks passed
@richm richm deleted the fix-remove-timeout-keyword branch January 5, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"reason": "conflicting action statements: ansible.builtin.reboot, timeout

2 participants