blob: 765660235aaf6e15858f4b5d5ef7a59c2304a8f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---
- name: Deploy target via lineinfile
ansible.builtin.lineinfile:
path: "{{ _target_path }}"
line: "{{ prometheus_target_strategy_lineinfile_prefix ~ _target_host ~ prometheus_target_strategy_lineinfile_suffix }}"
state: present
delegate_to: "{{ prometheus_target_host }}"
become: true
register: _lineinfile_result
- name: Track changes
ansible.builtin.set_fact:
changed: "{{ changed | default(false) or _lineinfile_result.changed }}"
|