aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tasks
diff options
context:
space:
mode:
authorColin Wilk <colin@wilk.cx>2026-08-11 01:39:58 +0200
committerColin Wilk <colin@wilk.cx>2026-08-11 01:45:24 +0200
commitac3c94b3159acf91674fdd61396e5811a6a55fb3 (patch)
treea9f8c3f86308835d100e638edfc68cbf77ffecc8 /tasks
parentf31bda03a2922d2b7d09be6772a5cf28f0981c8b (diff)
downloadansible-role-prometheus-target-ac3c94b3159acf91674fdd61396e5811a6a55fb3.tar.gz
ansible-role-prometheus-target-ac3c94b3159acf91674fdd61396e5811a6a55fb3.zip
Fix pre-commit lint violations
Diffstat (limited to 'tasks')
-rw-r--r--tasks/process_exporter.yml4
-rw-r--r--tasks/strategy_yaml.yml4
2 files changed, 4 insertions, 4 deletions
diff --git a/tasks/process_exporter.yml b/tasks/process_exporter.yml
index 0a19480..25d1749 100644
--- a/tasks/process_exporter.yml
+++ b/tasks/process_exporter.yml
@@ -17,8 +17,8 @@
- name: Validate exporter state
ansible.builtin.assert:
- that: _target_state in ["present", "absent"]
- fail_msg: "Exporter state must be 'present' or 'absent', got '{{ _target_state }}'"
+ that: _target_state in ['present', 'absent']
+ fail_msg: Exporter state must be 'present' or 'absent', got '{{ _target_state }}'
- name: Execute strategy
ansible.builtin.include_tasks:
diff --git a/tasks/strategy_yaml.yml b/tasks/strategy_yaml.yml
index 45b18c3..f35af6b 100644
--- a/tasks/strategy_yaml.yml
+++ b/tasks/strategy_yaml.yml
@@ -23,8 +23,8 @@
- name: Validate YAML exporter states
ansible.builtin.assert:
- that: _yaml_update.state in ["present", "absent"]
- fail_msg: "Exporter state must be 'present' or 'absent', got '{{ _yaml_update.state }}'"
+ that: _yaml_update.state in ['present', 'absent']
+ fail_msg: Exporter state must be 'present' or 'absent', got '{{ _yaml_update.state }}'
loop: "{{ _prometheus_target_yaml_updates }}"
loop_control:
loop_var: _yaml_update