On 9/10/20 6:37 PM, Pankaj Basnal wrote:
> This playbook works with less number of hosts. As the number of hosts 
> increase the probability of error increases. There
> are a few runs which have completed successfully with less number of hosts. 
> Though I don't have logs for them.
> I'll take your suggestions and try without until and retry. But if the 
> problem is with the dictionary check then it
> would have failed for all the hosts. But it failed for only 1 host and 
> completed for the other 9. 
> 

Yes that is correct .. success is a builtin test in Ansible.

But at any rate when the package install fails, that's a problem of the host 
(e.g. lack of resources,
installation problems) which need to be addressed instead of retrying the 
installation.

Regards
         Racke

> I can attach the complete log file if that helps
> On Thursday, September 10, 2020 at 9:22:08 PM UTC+5:30 [email protected] 
> wrote:
> 
>     On Thu, 10 Sep 2020 at 17:29, Pankaj Basnal <[email protected]> wrote:
>     >
>     > Hi,
>     > I'm new to ansible and I'm facing an issue with executing our playbook.
>     >
>     > Setup-
>     > * For 10 hosts on azure
>     > * all hosts are identical and newly created
>     > * ansible.cfg-
>     > [defaults]
>     > host_key_checking = False
>     >
>     > * portion of playbook that is installing packages
>     >
>     > - name: Set Initscripts to be Installed
>     > set_fact:
>     > packages_to_install: "{{ packages_to_install | default([]) + [ 
> 'initscripts' ] }}"
> 
>     IIRC this should not work - it will get into an endless loop.
> 
>     This may or may not be your problem.
>     It occurs elsewhere below as well.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2e0b338b-7b94-46b2-80fa-20267b167d65n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2e0b338b-7b94-46b2-80fa-20267b167d65n%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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/68edd28e-6d5e-0570-7a85-6673b1dba135%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to