summaryrefslogtreecommitdiffstats
path: root/mltk-bwlp
diff options
context:
space:
mode:
authorJonathan Bauer2018-08-21 18:23:49 +0200
committerJonathan Bauer2018-08-21 18:23:49 +0200
commit782c29d293fd0b36770ad9cc23b43dcd78345732 (patch)
tree154424644aa5fa4ebd4f2a5fe79d47c5fbbdcf26 /mltk-bwlp
parentinitial commit (diff)
downloadansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.tar.gz
ansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.tar.xz
ansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.zip
initial state
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"