On Fri, Apr 10, 2020 at 06:48:05AM -0700, Nicola Contu wrote:
> Hello,
> I am trying to get the latest version of few softwares and comparing it 
> with a list of hosts with the current installed.
> 
> Calling the github API is creating issues with the number of call due to 
> the the list of hosts that is quite big.
> So I would like to register the latest versions in a variable and then use 
> it to compare for each host.
> 
>  I tried a lot of things, like run_once, changed_when but it seems like it 
> is not working.

Lot of text, but you did not actually write what the problem is, not working 
can be so many things.


> Here is the playbook.
> 
> - hosts: "{{ variable_host }}"
>   serial: 1

run_once run one time for each batch, your batch size is 1, so it will run 
tasks with run_once for every host.

-- 
Kai Stian Olstad

-- 
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/20200410154223.qie7zcw3tamtrkmq%40olstad.com.

Reply via email to