Skip to content
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

hpilo_boot task with the option state: boot_once should not fail if the server is already on #9737

Closed
1 task done
christian-naenny opened this issue Feb 13, 2025 · 4 comments
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)

Comments

@christian-naenny
Copy link

Summary

In the idea of the idempotency of Ansible plays and tasks, I would like to suggest that the following task should not fail but rather just skip if the server is already on:

- name: Power on a server
  community.general.hpilo_boot:
    host: YOUR_ILO_HOST
    login: YOUR_ILO_LOGIN
    password: YOUR_ILO_PASSWORD
    state: boot_once

Of course, if the option force: true is set, the server should still be rebooted.

Issue Type

Feature Idea

Component Name

hpilo_boot

Additional Information

- name: Power on a server
  community.general.hpilo_boot:
    host: YOUR_ILO_HOST
    login: YOUR_ILO_LOGIN
    password: YOUR_ILO_PASSWORD
    state: boot_once

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @haad
click here for bot help

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module plugins plugin (any type) labels Feb 13, 2025
@felixfontein
Copy link
Collaborator

Related: #9646

@christian-naenny
Copy link
Author

@felixfontein : In this case, this issue (#9737) can be closed in favor of the already existing issue #9646

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

3 participants