I don't currently have any switches to test against, but I would think you 
can get the interface status with ios_facts with the ansible_net_interfaces 
giving you a hash of the interface status.  From that, you should be able 
to use ios_interface to mark it down.  ansible check of IOS interfaces 
<https://gist.github.com/cgascoig/5deeb9310c9b8ac04d4c6567d64ac905> gives a 
similar example.

On Monday, October 15, 2018 at 1:51:11 PM UTC-4, Ahmed Aljawad wrote:
>
> Is there is any way i can loop on all the devices interfaces and shut all 
> the Down Down ports ? 
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ca094c59-3e9b-49b5-9ba5-3b2141a8b0f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to