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

fix: implement Manager.ResetToDefaults #66

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tags: [opi, dpu, redfish, automation, devops, infrastructure]
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
# range specifiers can be set and are separated by ','
dependencies: {
"community.general": ">=8.4.0",
"community.general": ">=8.6.0",
}

# The URL of the originating SCM repository
Expand Down
6 changes: 4 additions & 2 deletions roles/bmc_factory_reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
- name: Factory reset BMC when username and password are defined
community.general.redfish_command:
category: Manager
command: GracefulRestart
command: ResetToDefaults
baseuri: "{{ inventory_hostname }}"
username: "{{ dpu_bmc_username }}"
password: "{{ dpu_bmc_password }}"
reset_to_defaults_mode: ResetAll

- name: Factory reset BMC when auth_token is defined
when: dpu_bmc_token is defined
Expand All @@ -35,6 +36,7 @@
- name: Factory reset BMC when auth_token is defined
community.general.redfish_command:
category: Manager
command: GracefulRestart
command: ResetToDefaults
baseuri: "{{ inventory_hostname }}"
auth_token: "{{ dpu_bmc_token }}"
reset_to_defaults_mode: ResetAll
Loading