What is in reply? Instead of putting in a file and then running your script against that, you might be able to directly get the value from the registered variable. Put a debug module after ios_command and print out result.
On Friday, October 12, 2018 at 9:12:44 AM UTC-4, alexis calvayrac wrote: > > Hello, I currently have a playbook that retrieves information from a Cisco > machine in a text file. Then I run a scipt bash run by ansible to check the > patch version. > The problem is that this way of doing things does not respect idempotence. > Do you know a module to check that a line exists within the file or even a > variable and which returns an "OK" if the line exists ? > > Thank you in advance > -- 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/a3bdf11b-ed53-4fc3-a010-f542a175389e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
