On 31.05.16 20:37
anderson...@boxever.com 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