Closed HugoPoi closed 3 years ago
After investigating a little more, this role doesn't handle well the check mode. I see https://github.com/DavidWittman/ansible-redis/pull/202 fix some stuff and go in the right direction I think.
I addressed this specific issue in #264 which has been merged.
If you use the current master version by adding this to your requirements you should find this is resolved:
- src: https://github.com/DavidWittman/ansible-redis
version: 'b1edec047232c3f226677fb89a0bbdc4670701fa'
name: davidwittman.redis
Closed by #264
With Ansible version
2.8.4
in check mode the taskadd redis binaries to alternatives
failed with a'dict object' has no attribute 'stdout_lines'
.https://github.com/DavidWittman/ansible-redis/blob/98bef17f323438dec378527e459e7fd72d27e31f/tasks/install.yml#L63-L74
I think the task
list redis binaries to add to alternatives
can havecheck_mode: no
because it's read-only stuff. And a| default([])
in thewith_items
.