Ver Fonte

Use stdout_lines instead of stdout (#20)

Stephen Muth há 9 anos atrás
pai
commit
66def46597
2 ficheiros alterados com 2 adições e 2 exclusões
  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