浏览代码

Check if sensu_available_checks is skippeded

I think this might resolve https://github.com/sensu/sensu-ansible/issues/194
Jared 6 年之前
父节点
当前提交
ab3cb69dcc
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tasks/plugins.yml

+ 4 - 1
tasks/plugins.yml

@@ -40,7 +40,10 @@
     mode: 0755
     owner: "{{ sensu_user_name }}"
     group: "{{ sensu_group_name }}"
-  when: "sensu_available_checks is defined and item in sensu_available_checks.stdout_lines"
+  when: 
+    - sensu_available_checks is defined 
+    - sensu_available_checks is not skipped
+    - item in sensu_available_checks.stdout_lines"
   with_flattened:
     - "{{ group_names }}"
   notify: restart sensu-client service