- name: not working

      debug: var=item

      loop: "{{ csv_json }}"

      when: item.status == 'online' and item.work_status == 'not_used'


    - name: exclude

      debug: var=item

      loop: "{{ csv_json }}"

      when: (item.status == 'offline') and ('Test' in item.vol_name)


    - name: working

      debug: var=item

      loop: "{{ csv_json }}"

      when: (item.status == 'online') and (item.work_status == 'used')


Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123

On Mar 6, 2023, at 2:58 PM, Aharonu <[email protected]> wrote:

Thanks Walter.

May I still ask a favor for CVS data structure atleast for any of one condion 
here so I can refer and work on remaining? Once I got flow it helps to explore 
more. Thanking you.

The header must be:  cluster_name,log_cluster,vol_name,status,work_status

not working:
(it has to give here when status=online and  work_status=not_used )
exclude:
(it has go give here when status=offline and  vol_name=<name contacts 'Test'>)
working:
(it has to give here when status=online and work_status=used
[other then not working & exclude list] )

-- 
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/2C985CA4-26A4-4EB4-9EF0-C43FD4A0C13B%40nist.gov.

Reply via email to