summaryrefslogtreecommitdiffstats
path: root/mltk-bwlp
diff options
context:
space:
mode:
Diffstat (limited to 'mltk-bwlp')
-rw-r--r--mltk-bwlp/meta/main.yml3
-rw-r--r--mltk-bwlp/tasks/distro.yml15
-rw-r--r--mltk-bwlp/tasks/main.yml11
3 files changed, 29 insertions, 0 deletions
diff --git a/mltk-bwlp/meta/main.yml b/mltk-bwlp/meta/main.yml
new file mode 100644
index 0000000..74efe31
--- /dev/null
+++ b/mltk-bwlp/meta/main.yml
@@ -0,0 +1,3 @@
+---
+dependencies:
+ - { role: mltk-core }
diff --git a/mltk-bwlp/tasks/distro.yml b/mltk-bwlp/tasks/distro.yml
new file mode 100644
index 0000000..1db174d
--- /dev/null
+++ b/mltk-bwlp/tasks/distro.yml
@@ -0,0 +1,15 @@
+---
+# TODO other distros if needed
+- set_fact:
+ pkgnames:
+ - build-essential
+ - automake
+ - cmake
+ - lsof
+ - m4
+ - rsync
+ - pkg-config
+ - xserver-xorg
+ when:
+ - ansible_distribution == "Ubuntu"
+# TODO QT
diff --git a/mltk-bwlp/tasks/main.yml b/mltk-bwlp/tasks/main.yml
new file mode 100644
index 0000000..e6e7cf7
--- /dev/null
+++ b/mltk-bwlp/tasks/main.yml
@@ -0,0 +1,11 @@
+---
+- import_tasks: tasks/distro.yml
+
+- name: mltk | Install dependencies
+ package:
+ name: "{{ item }}"
+ state: present
+ with_items: "{{ pkgnames }}"
+
+- name: mltk | Build and install bwlp target
+ shell: "{{ mltk_git_target }}/mltk bwlp -b -i"