浏览代码

fix condition with non-boolean result

Fabian Peter Hammerle 6 天之前
父节点
当前提交
042995e030
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tasks/main.yml

+ 1 - 1
tasks/main.yml

@@ -19,7 +19,7 @@
            "user" if systemd_unit_scope == "global" else systemd_unit_scope
          ) }}
   register: _config_file
-  when: systemd_unit_config
+  when: systemd_unit_config is not none
 - name: 'create parent folder for drop-in config files of systemd unit {{ systemd_unit_name }}'
   file:
     path: '{{ _config_dir_path }}/{{ systemd_unit_name }}.d'