From 44f82deb50ce8121ca35b86fc355454f12672240 Mon Sep 17 00:00:00 2001 From: Michal Opala Date: Mon, 25 Jan 2021 19:16:12 +0100 Subject: [PATCH] zookeeper: add yum lock_timeout (fix) --- .../playbooks/roles/zookeeper/tasks/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/src/epicli/data/common/ansible/playbooks/roles/zookeeper/tasks/main.yml b/core/src/epicli/data/common/ansible/playbooks/roles/zookeeper/tasks/main.yml index 9fae5309c0..467ee24f54 100644 --- a/core/src/epicli/data/common/ansible/playbooks/roles/zookeeper/tasks/main.yml +++ b/core/src/epicli/data/common/ansible/playbooks/roles/zookeeper/tasks/main.yml @@ -1,5 +1,4 @@ --- - - name: Create Zookeeper group group: name: "{{ zookeeper_group }}" @@ -14,15 +13,16 @@ - name: Install Java package package: - name: "java-1.8.0-openjdk-headless" - state: present - when: ansible_os_family == "RedHat" - -- name: Install Java package - package: - name: "openjdk-8-jre-headless" + name: "{{ _packages[ansible_os_family] }}" state: present - when: ansible_os_family == "Debian" + vars: + _packages: + Debian: + - openjdk-8-jre-headless + RedHat: + - java-1.8.0-openjdk-headless + module_defaults: + yum: { lock_timeout: 300 } - name: Check if jmx exporter is available stat: