Adding Ubuntu support in Ansible - application role install make 88/106888/1
authorJan Benedikt <j.benedikt@partner.samsung.com>
Thu, 30 Apr 2020 12:04:05 +0000 (14:04 +0200)
committerJan Benedikt <j.benedikt@partner.samsung.com>
Thu, 30 Apr 2020 12:08:06 +0000 (14:08 +0200)
Helm using "make" package for building local helm repository.
In Ubuntu distribution is this package missing so is necessary to install it.

Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: I808dcb57396caf82a60d17f50515bae59b5d85ca

ansible/roles/application/tasks/install.yml

index 5cffdd0..81e145a 100644 (file)
   when: "'local' not in helm_repo_list.stdout"
   changed_when: true  # when executed its a changed type of action
 
+# Make utility is missing in Ubuntu by default and it's necessary for building local helm repository
+- name: Install build-essential
+  package:
+    name: build-essential
+    state: present
+  when: ansible_os_family == "Debian"
+
 - name: Build local helm repository
   make:
     chdir: "{{ app_helm_charts_infra_directory }}"