diff --git a/playbooks/delete.yml b/playbooks/delete.yml new file mode 100644 index 0000000..b4e8215 --- /dev/null +++ b/playbooks/delete.yml @@ -0,0 +1,24 @@ +- 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