Change-Id: I1bc39aa6b8e57a1ade363e14f8255a3ef439c58d
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
---
+
+- name: Activate SLES Products
+ when: ansible_distribution == 'SLES'
+ include_role:
+ name: suse
+ tasks_from: product
+ loop: "{{common_node_products|default([])}}"
+ loop_control:
+ loop_var: 'product'
+
- name: Ensure common_node patterns are installed.
zypper: "name={{ common_node_patterns }} type=pattern state=present update_cache=yes"
- flex
- gettext-runtime
- git-core
+ - java-1_8_0-openjdk-devel
+ - java-1_8_0-openjdk-headless
- java-11-openjdk-devel
- java-11-openjdk-headless
# - jq
- flex
- gettext-runtime
- git-core
+ - java-1_8_0-openjdk-devel
+ - java-1_8_0-openjdk-headless
- java-11-openjdk-devel
- java-11-openjdk-headless
- jq
- sudo
# - tree
- vim
+
+common_node_products:
+ # Required for sle-module-legacy
+ - sle-module-server-applications
+ # For java 1.8
+ - sle-module-legacy
- flex
- gettext-runtime
- git-core
+ - java-1_8_0-openjdk-devel
+ - java-1_8_0-openjdk-headless
- java-11-openjdk-devel
- java-11-openjdk-headless
# - jq
- sudo
- tree
- vim
+
+# For SLES
+common_node_products: []