You can use change_when: <condition> example: change_when: False
2013/12/18 Giorgio Valoti <[email protected]> > Hi, > When a shell command is executed, Ansible consider it as a modifying > action. It’s a sensible default, because it can’t predict the command > output, but I’m wondering if there’s a way to declare a command as > safe/read-only? > > -- > Giorgio Valoti > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
