Timeline for How to check the status of Ethernet port using ansible?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 9, 2023 at 13:21 | comment | added | majorgear | Good idea. For my current project, I went with what I think is a faster, but less Ansible-ish method , if using the "ip" command in a shell task to get the status. Fr my project,I only need to shutdown some ports once, and after that they will never be used again. | |
Aug 3, 2023 at 17:48 | comment | added | Bruce Becker | yes, the best way I think would be to refresh the facts, by running setup again. You could use a handler for setup and flush it when the relevant task changes. | |
Aug 3, 2023 at 15:50 | comment | added | majorgear | How would you do this after changing interface status. Example: ansible modified ifcfg-eth0 and restarted network service. What is the fastest way to verify the change did what it was supposed to? It can run ansible_setup: again, but perhaps there is a faster way. | |
Sep 7, 2021 at 8:10 | history | answered | Bruce Becker | CC BY-SA 4.0 |