Hi All,

I have a role to check the partition ( mount ) details of ansible client 
and then compare its value with the values provided by the customer, 
however the output of ansible_mounts is too huge once I playbook executes 
the role and its can't be compared with the values provided by the 
customer. Any advise or suggestion.
+++
---

  - name: show file contents
    debug:
      msg: "{{ lookup('file', 'customer-expects.txt') }}"

  - name: Partition details
    set_fact:
      # These dashes matter.
      expectation: |-
        {%- if lookup('file', 'customer-expects.txt')
              is regex([ansible_mounts]|join(' ')|regex_escape()) -%}
        matches
        {%- else -%}
        missed
        {%- endif -%}

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4888b81d-128d-4dc2-9923-98ea39c459f9n%40googlegroups.com.

Reply via email to