refactor ♻️: Simplify playbook
This commit refactors the playbook by removing the unnecessary conditional block and import related to Dell/Lenovo firmware. This streamlines the playbook, improving readability and reducing complexity without altering the core functionality. The changes focus on code organization and simplification.
This commit is contained in:
@@ -21,11 +21,12 @@
|
||||
ansible.builtin.debug:
|
||||
var: ansible_local['cpu_info']
|
||||
|
||||
- name: Firmware block for x86_64 systems
|
||||
when: "'Dell' in ansible_board_vendor or 'LENOVO' in ansible_board_vendor"
|
||||
block:
|
||||
- name: Import firmware tasks
|
||||
ansible.builtin.import_tasks: additional-firmware.yml
|
||||
# Not necessary for me
|
||||
# - name: Firmware block for x86_64 systems
|
||||
# when: "'Dell' in ansible_board_vendor or 'LENOVO' in ansible_board_vendor"
|
||||
# block:
|
||||
# - name: Import firmware tasks
|
||||
# ansible.builtin.import_tasks: additional-firmware.yml
|
||||
|
||||
# not sure if needed, but I'll leave it here as a reference if needed.
|
||||
# - name: Import color-shell tasks for the common-role
|
||||
|
||||
Reference in New Issue
Block a user