diff --git a/tasks/main.yml b/tasks/main.yml index f020661..d1c5bb5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,7 +20,7 @@ owner: root group: root mode: u=rwx,g=rx,o=rx - when: node_exporter_scripts != [] + when: node_exporter_scripts | length >= 1 - name: Add git repos for node_exporter scripts ansible.builtin.git: diff --git a/templates/flags b/templates/flags index d243ac8..9cc195b 100644 --- a/templates/flags +++ b/templates/flags @@ -25,5 +25,5 @@ {% endfor %} --log.level="{{ node_exporter_log_level }}" \ {% for node_exporter_listen_address in node_exporter_listen_addresses %} ---web.listen-address="{{ node_exporter_listen_address }}" {{ '\\\\' if not loop.last }} +--web.listen-address="{{ node_exporter_listen_address }}" {{ "\\" if not loop.last }} {% endfor %}