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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user