aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tasks/lineinfile.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/lineinfile.yml')
-rw-r--r--tasks/lineinfile.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/tasks/lineinfile.yml b/tasks/lineinfile.yml
index 0367be9..8c60ba0 100644
--- a/tasks/lineinfile.yml
+++ b/tasks/lineinfile.yml
@@ -17,6 +17,8 @@
delegate_to: '{{ prometheus_target_host }}'
loop: '{{ prometheus_target_exporter +
([] if prometheus_target_skip_default_exporters else prometheus_target_default_exporters) }}'
- notify:
- - Run command hook
- - Run shell hook
+ register: lineinfile
+
+- name: Export fact
+ ansible.builtin.set_fact:
+ changed: '{{ changed or lineinfile.changed }}'