aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tasks/lineinfile.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/lineinfile.yml')
-rw-r--r--tasks/lineinfile.yml24
1 files changed, 0 insertions, 24 deletions
diff --git a/tasks/lineinfile.yml b/tasks/lineinfile.yml
deleted file mode 100644
index 8c60ba0..0000000
--- a/tasks/lineinfile.yml
+++ /dev/null
@@ -1,24 +0,0 @@
----
-- name: Make sure targets are deployed
- ansible.builtin.lineinfile:
- path: '{{ (
- item.path_prefix if item.path_prefix is defined else
- (prometheus_target_exporter_defaults[item.id].path_prefix
- | default(prometheus_target_exporter_target_prefix))
- if item.id is defined)
- ~
- (item.path if item.path is defined
- else prometheus_target_exporter_defaults[item.id].path if item.id is defined) | mandatory }}'
- line: '{{ prometheus_target_strategy_lineinfile_prefix ~
- (item.host if item.host is defined else prometheus_target_exporter_defaults[item.id].host) | mandatory ~
- prometheus_target_strategy_lineinfile_suffix }}'
- state: present
- become: true
- delegate_to: '{{ prometheus_target_host }}'
- loop: '{{ prometheus_target_exporter +
- ([] if prometheus_target_skip_default_exporters else prometheus_target_default_exporters) }}'
- register: lineinfile
-
-- name: Export fact
- ansible.builtin.set_fact:
- changed: '{{ changed or lineinfile.changed }}'