Procházet zdrojové kódy

fix condition with non-boolean result

Fabian Peter Hammerle před 6 dny
rodič
revize
042995e030
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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'