freedomofpress / ansible-role-elk

Installs a turnkey ELK stack for log aggregation and analysis, with optional Riemann support for alerting
18 stars 13 forks source link

Remove Kibana symlink fails with "'dict object' has no attribute 'islnk'" #48

Closed techraf closed 8 years ago

techraf commented 8 years ago

The following check in tasks/kibana.yml fails when running molecule converge out of the box:

  when: kibana_directory_check.stat.islnk

The error message:

TASK [ansible-role-elk : Remove Kibana symlink.] *******************************
task path: ./molecule/ansible-role-elk/tasks/kibana.yml:17
fatal: [logserver]: FAILED! => {"failed": true, "msg": "The conditional check 'kibana_directory_check.stat.islnk' failed. The error was: error while evaluating conditional (kibana_directory_check.stat.islnk): 'dict object' has no attribute 'islnk'\n\nThe error appears to have been in './molecule/ansible-role-elk/tasks/kibana.yml': line 17, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Remove Kibana symlink.\n  ^ here\n"}