variables for reboot

11 views
Skip to first unread message

Mikey

unread,
Sep 9, 2019, 10:52:20 AM9/9/19
to Ansible Project
Howdy all

I have a playbook that I want to run hourly to check for new hosts and I have a script that returns a variable of new and this host gets the yum update and yum reboot and then come around again this host variable is now old...

My question is how can I get this playbook to run the yum update and reboot when the variable returns as new?

If the variable is old then it skips this

Jonathan Lozada De La Matta

unread,
Sep 9, 2019, 10:56:25 AM9/9/19
to ansible...@googlegroups.com
not sure about old variables but, I used yum.changed after a task runs yum update all.

--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/59ee14db-1aef-43fc-93cc-98d2e75ee75b%40googlegroups.com.


--

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Red Hat

Senior Automation Practice Consultant & Automation CoP Manager

Join the Automation CoP! https://red.ht/autocop

 

Reply all
Reply to author
Forward
0 new messages