You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: list redis binaries to add to alternatives
command: ls -1 {{ redis_install_dir }}/bin
register: redis_binaries
changed_when: false
- name: add redis binaries to alternatives
alternatives:
name: "{{ item }}"
path: "{{ redis_install_dir }}/bin/{{ item }}"
link: "/usr/bin/{{ item }}"
with_items: "{{ redis_binaries.stdout_lines }}"
when: redis_binaries is succeeded
I think the task list redis binaries to add to alternatives can have check_mode: no because it's read-only stuff. And a | default([]) in the with_items.
The text was updated successfully, but these errors were encountered:
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'
.ansible-redis/tasks/install.yml
Lines 63 to 74 in 98bef17
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
.The text was updated successfully, but these errors were encountered: