浏览代码

Use stdout_lines instead of stdout (#20)

Stephen Muth 9 年之前
父节点
当前提交
66def46597
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/dynamic_checks.md
  2. 1 1
      tasks/plugins.yml

+ 1 - 1
docs/dynamic_checks.md

@@ -87,7 +87,7 @@ With this pair of plays, in the `tasks/plugins.yml` playbook:
       mode: 0755
       owner: "{{ sensu_user_name }}"
       group: "{{ sensu_group_name }}"
-    when: "'{{ item }}' in sensu_available_checks.stdout"
+    when: "'{{ item }}' in sensu_available_checks.stdout_lines"
     with_flattened:
       - group_names
     notify: restart sensu-client service

+ 1 - 1
tasks/plugins.yml

@@ -29,7 +29,7 @@
       mode: 0755
       owner: "{{ sensu_user_name }}"
       group: "{{ sensu_group_name }}"
-    when: "'{{ item }}' in sensu_available_checks.stdout"
+    when: "'{{ item }}' in sensu_available_checks.stdout_lines"
     with_flattened:
       - group_names
     notify: restart sensu-client service