소스 검색

Fix ansible conditional in teardown

Nicolas Meienberger 3 년 전
부모
커밋
3be433bf6a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      ansible/tasks/common/teardown.yml

+ 3 - 1
ansible/tasks/common/teardown.yml

@@ -12,4 +12,6 @@
 - name: Stop app
   become_user: "{{ username }}"
   shell: pm2 stop "system-api"
-  when: pm2_status.stat.exists && pm2_result.stdout.find("system-api") != -1
+  when:
+    - pm2_status.stat.exists
+    - pm2_result.stdout.find("system-api") != -1