Skip to content

Commit

Permalink
Merge pull request #8 from wandansible/escape-fix
Browse files Browse the repository at this point in the history
Fix escaping of backslash character.
  • Loading branch information
gizmoguy authored Jun 18, 2024
2 parents bfe1c57 + 288725a commit 50b63ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion templates/flags
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 50b63ec

Please sign in to comment.