diff --git a/apps/application.yml b/apps/application.yml index 83872e12..e14fd77c 100644 --- a/apps/application.yml +++ b/apps/application.yml @@ -38,7 +38,7 @@ msg: "{{appname}}" - debug: msg: "hahha" - when: env_content.stdout.find('APP_HTTP_PORT') != -1 + when: env_content is not none and env_content.stdout.find('APP_HTTP_PORT') != -1 roles: - { role: role_nginx, tags: "role_nginx", when: env_content.stdout.find('APP_HTTP_PORT') != -1 }