Fix ansible conditional in teardown

This commit is contained in:
Nicolas Meienberger 2022-05-17 20:37:00 +02:00
parent ac0ff714a4
commit 3be433bf6a

View file

@ -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