Hi I just confirmed that this super simple task does exactly what you need:
- name: reboot and wait a bit reboot: post_reboot_delay: 120 become: true No need to fiddle with additional tasks and conditions. On Mon, 3 Apr 2023 at 17:07, vinayak sawant <vinayak.sawan...@gmail.com> wrote: > > i checked both ways with string and without string as well it did not work. > > > Kind Regards > Vinayak Sawant > > > On Mon, Apr 3, 2023 at 8:18 PM Antony Stone > <antony.st...@ansible.open.source.it> wrote: >> >> On Monday 03 April 2023 at 16:28:31, vinayak sawant wrote: >> >> > @Antony Stone : "ansible_uptime_seconds >= '120'" is not working as shown >> > below. >> >> I did not mean you to add the " characters - those were simply to identify >> the >> string I think you should use in order to confirm to ansible syntax. >> >> >> Antony >> >> -- >> What do you call a dinosaur with only one eye? A Doyouthinkesaurus. >> >> Please reply to the list; >> please *don't* CC >> me. > > -- > 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 ansible-project+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAM5Hc_h91FL1mj7%3DKxs%2BEjU5shpN_i_vO2PNq%2B%3DFuWr9DObvJQ%40mail.gmail.com. -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLYFJG%2B1qGuaqyWR%2BDNj2hzsmcbm7uDVJmRB2%3D4GkSeHvQ%40mail.gmail.com.