diff --git a/tasks/haproxy_pre_install.yml b/tasks/haproxy_pre_install.yml index adea927..1476b27 100644 --- a/tasks/haproxy_pre_install.yml +++ b/tasks/haproxy_pre_install.yml @@ -35,7 +35,7 @@ mode: "{{ item.mode|default('0755') }}" with_items: - { path: "/var/log/haproxy" } - when: log_dir.rc != 0 + when: log_dir | changed tags: - haproxy-dirs - haproxy-logs