not sure about old variables but, I used yum.changed after a task runs yum
update all.

On Mon, Sep 9, 2019 at 10:52 AM Mikey <[email protected]> wrote:

> 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
>
> --
> 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/59ee14db-1aef-43fc-93cc-98d2e75ee75b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/59ee14db-1aef-43fc-93cc-98d2e75ee75b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Red Hat <https://www.redhat.com>

Senior Automation Practice Consultant & Automation CoP Manager

Join the Automation CoP! https://red.ht/autocop
@redhatjobs <https://twitter.com/redhatjobs>   redhatjobs
<https://www.facebook.com/redhatjobs> @redhatjobs
<https://instagram.com/redhatjobs>
<https://www.redhat.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKAtoc3-AaDU8-NAjBnjZ9Gpeed6s_CMSd1P_7KuCuF9w%40mail.gmail.com.

Reply via email to