Skip to content

Commit

Permalink
Remove unnecessary loops in package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Donien committed Oct 10, 2024
1 parent ac8e1d8 commit 220913e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions roles/icingadb_redis/tasks/install_on_debian.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 1 addition & 2 deletions roles/icingadb_redis/tasks/install_on_redhat.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 220913e

Please sign in to comment.