diff --git a/lemmy.yml b/lemmy.yml index c188442..8388fbf 100644 --- a/lemmy.yml +++ b/lemmy.yml @@ -81,7 +81,7 @@ file: path: "/etc/nginx/sites-enabled/{{domain}}.conf" state: absent - when: reg_enabled.stat.isreg + when: reg_enabled.stat.exists and reg_enabled.stat.isreg - name: enable nginx site file: