- name: List all disks
  hosts: all
  tasks:
    - name: Get info disk information 2
      shell: blkid | grep LABEL | awk {'print $2'}
      register: blkid
    
    - name: Print valid labels
      debug:
        var: blkid

    - name: Parsear stdout_lines para buscar etiquetas específicas
      set_fact:
        found_labels: >-
          {{
            blkid.stdout_lines
            | map('regex_search', 'LABEL="(?P<label>[^"]+)"')
            | select('defined')
            | list
          }}

    - name: Print valid labels
      debug:
        var: found_labels