On 31.05.16 20:37 [email protected] wrote: > The problem is, one task register a variable and the other tries to access > its attribute, which fails because it is not defined. I tried to use > ec2_volume.skipped check, but it stills tries to access some its attribute > and fail the check.
If the first task does not harm (e.g. just look up a file or list a directory) then set it to 'always_run: yes'. So the task is executed even in check mode, and thus the variable is correctly registered. Unfortunately that won't work if the task uses a file that a previous task would create, were it not in check mode... Johannes -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/574DE7A5.5000902%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
