From 220913e755c3e901ea252d52f4895cdc5d642875 Mon Sep 17 00:00:00 2001 From: Donien <88634789+Donien@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:46:04 +0200 Subject: [PATCH] Remove unnecessary loops in package installation --- roles/icingadb_redis/tasks/install_on_debian.yml | 3 +-- roles/icingadb_redis/tasks/install_on_redhat.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/roles/icingadb_redis/tasks/install_on_debian.yml b/roles/icingadb_redis/tasks/install_on_debian.yml index 208beb53..6257666d 100644 --- a/roles/icingadb_redis/tasks/install_on_debian.yml +++ b/roles/icingadb_redis/tasks/install_on_debian.yml @@ -1,9 +1,8 @@ --- - name: Debian - Install IcingaDB Redis packages ansible.builtin.apt: - name: "{{ item }}" + name: "{{ icingadb_redis_packages }}" state: present - loop: "{{ icingadb_redis_packages }}" - name: Debian - Ensure log directory exists when: diff --git a/roles/icingadb_redis/tasks/install_on_redhat.yml b/roles/icingadb_redis/tasks/install_on_redhat.yml index a4205152..9e15b824 100644 --- a/roles/icingadb_redis/tasks/install_on_redhat.yml +++ b/roles/icingadb_redis/tasks/install_on_redhat.yml @@ -1,9 +1,8 @@ --- - name: RedHat - install icingadb packages ansible.builtin.yum: - name: "{{ item }}" + name: "{{ icingadb_redis_packages }}" state: present - loop: "{{ icingadb_redis_packages }}" - name: RedHat - Ensure log directory exists when: