You probably need a handler with a changed_when condition. https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_handlers.html#handlers https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_error_handling.html#defining-changed
See this discussion: https://unix.stackexchange.com/a/707238 On Fri, 16 Jun 2023 at 14:47, Tony Wong <[email protected]> wrote: > I got pb that based on output will say: > > reboot required: True > or reboot required: False > > if its false how do i skip the reboot on the following task? > > -- > 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/de46990a-8d98-4dd9-82a8-54299a1e32adn%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/de46990a-8d98-4dd9-82a8-54299a1e32adn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAKtKohQe5TSq%3DNW0BH1Vm3mdO0dhd7NqmJWpcB-WCF7D9OQW5Q%40mail.gmail.com.
