refactor ♻️: Simplify Samba version verification and display logic

Renamed debug block to use Ansible debug output, removing unnecessary variables and improving readability. This change aims to make the code more maintainable and efficient.
This commit is contained in:
2025-11-04 21:11:05 +01:00
parent 6afc14a362
commit 767ebb022b

View File

@@ -81,14 +81,14 @@
# state: latest
# when: "'4.22.4' in samba_version.stdout"
- name: Verify installed Samba version
ansible.builtin.command: samba --version
register: samba_version
changed_when: false
# - name: Verify installed Samba version
# ansible.builtin.command: samba --version
# register: samba_version
# changed_when: false
- name: Display upgraded Samba version
ansible.builtin.debug:
msg: "✅ Samba version after upgrade: {{ samba_version.stdout }}"
# - name: Display upgraded Samba version
# ansible.builtin.debug:
# msg: "✅ Samba version after upgrade: {{ samba_version.stdout }}"
- name: Stop Samba services before provisioning
ansible.builtin.service: