I guess you need to use gather_facts: true to be able to use the up time
function here.
Thanks
On Mon, 3 Apr 2023 at 6:52 PM, vinayak sawant
wrote:
> Hello Visser
>
> Below is my playbook
>
>
> [image: image.png]
>
> anisble_uptime_seconds does not work for me.
>
>
> *Kind Regards*
> *Vinayak S
You could use a sleep task between this two tasks and assign 120sec sleep
time.
Example: using builtin wait module
- name: Sleep for 300 seconds and continue with play
ansible.builtin.wait_for:timeout: 300 delegate_to: localhost
Other wise you can use shell module and use command “sleep 30
I am stuck here in a case , i have couple of clustered App servers running
Weblogic on top of them.Servers are Linux RHEL 7 and needs us to run "be
fid" to access application locations i,e a functional id.
I am not able to bypass the same using ansible. Wherein another user has
sudo access and