Skip to content

Commit

Permalink
Fixes issue #70 user/pass/token: make task names and block names matc…
Browse files Browse the repository at this point in the history
…h (more blocks)

Signed-off-by: Jose Castanos <[email protected]>
  • Loading branch information
jcastanos2 authored and glimchb committed Apr 12, 2024
1 parent 15eac5a commit 4a6576e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions roles/bmc_factory_reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Factory reset BMC when username and password are defined
when: dpu_bmc_username is defined and dpu_bmc_password is defined
block:
- name: Reset DPU BMC to default factory settings
- name: Factory reset BMC when username and password are defined
community.general.redfish_command:
category: Manager
command: GracefulRestart
Expand All @@ -31,7 +31,7 @@
- name: Factory reset BMC when auth_token is defined
when: dpu_bmc_token is defined
block:
- name: Reset DPU BMC to default factory settings
- name: Factory reset BMC when auth_token is defined
community.general.redfish_command:
category: Manager
command: GracefulRestart
Expand Down
4 changes: 2 additions & 2 deletions roles/enable_secure_boot/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Enable SecureBoot when username and password are defined
when: dpu_bmc_username is defined and dpu_bmc_password is defined
block:
- name: Enable SecureBoot
- name: Enable SecureBoot when username and password are defined
community.general.redfish_config:
category: Systems
command: EnableSecureBoot
Expand All @@ -31,7 +31,7 @@
- name: Enable SecureBoot when auth_token is defined
when: dpu_bmc_token is defined
block:
- name: Enable SecureBoot
- name: Enable SecureBoot when auth_token is defined
community.general.redfish_config:
category: Systems
command: EnableSecureBoot
Expand Down
4 changes: 2 additions & 2 deletions roles/get_bmc_facts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Get Firmware Inventory when username and password are defined
when: dpu_bmc_username is defined and dpu_bmc_password is defined
block:
- name: Get Firmware Inventory
- name: Get Firmware Inventory when username and password are defined
community.general.redfish_info:
category: Update
command: GetFirmwareInventory
Expand All @@ -37,7 +37,7 @@
- name: Get Firmware Inventory when auth_token is defined
when: dpu_bmc_token is defined
block:
- name: Get Firmware Inventory
- name: Get Firmware Inventory when auth_token is defined
community.general.redfish_info:
category: Update
command: GetFirmwareInventory
Expand Down
4 changes: 2 additions & 2 deletions roles/update_bmc_password/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Update user password when username and password are defined
when: dpu_bmc_username is defined and dpu_bmc_password is defined
block:
- name: Update user password
- name: Update user password when username and password are defined
community.general.redfish_command:
category: Accounts
command: UpdateUserPassword
Expand All @@ -33,7 +33,7 @@
- name: Update user password when auth_token is defined
when: dpu_bmc_token is defined
block:
- name: Update user password
- name: Update user password when auth_token is defined
community.general.redfish_command:
category: Accounts
command: UpdateUserPassword
Expand Down

0 comments on commit 4a6576e

Please sign in to comment.