From 42c149111f4c6657ed9e1fdada139ebf060a646f Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Sun, 28 Dec 2025 20:01:24 +0400 Subject: [PATCH] Switch more modern syntax with `loop` --- roles/alertmanager/tasks/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/alertmanager/tasks/install.yml b/roles/alertmanager/tasks/install.yml index b156bfb..944c1ec 100644 --- a/roles/alertmanager/tasks/install.yml +++ b/roles/alertmanager/tasks/install.yml @@ -8,7 +8,7 @@ state: present - name: "Install | Create directories {{ item }}" - with_items: + loop: - "{{ alertmanager_config_dir }}" - "{{ alertmanager_storage_dir }}" ansible.builtin.file: @@ -43,7 +43,7 @@ remote_src: true - name: "Install | Put the binaries under the PATH" - with_items: + loop: - alertmanager - amtool ansible.builtin.copy: