ansible-keycloak/roles/keycloak/tasks/fastpackages/install.yml

18 lines
410 B
YAML
Raw Normal View History

---
2022-02-15 12:14:36 +00:00
- name: Set facts
set_fact:
update_cache: true
packages_to_install: []
- name: "Check packages to be installed"
include_tasks: check.yml
loop: "{{ packages_list | flatten }}"
loop_control:
loop_var: package_name
- name: "Install packages: {{ packages_to_install }}"
become: yes
yum:
name: "{{ packages_to_install }}"
state: present
when: packages_to_install | length > 0