summaryrefslogtreecommitdiffstats
path: root/setup-bwlp/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'setup-bwlp/tasks')
-rw-r--r--setup-bwlp/tasks/distro.yml18
-rw-r--r--setup-bwlp/tasks/main.yml12
2 files changed, 30 insertions, 0 deletions
diff --git a/setup-bwlp/tasks/distro.yml b/setup-bwlp/tasks/distro.yml
new file mode 100644
index 0000000..1e7a1c5
--- /dev/null
+++ b/setup-bwlp/tasks/distro.yml
@@ -0,0 +1,18 @@
+---
+- set_fact:
+ pkgnames:
+ - qt-devel
+ when:
+ - ansible_distribution == "CentOS"
+- set_fact:
+ pkgnames:
+ - libqt4-dev
+ - m4
+ - squashfs-tools
+ - pkg-config
+ - cmake
+ - build-essential
+ - xserver-xorg
+ when:
+ - ansible_distribution == "Ubuntu"
+
diff --git a/setup-bwlp/tasks/main.yml b/setup-bwlp/tasks/main.yml
new file mode 100644
index 0000000..df54261
--- /dev/null
+++ b/setup-bwlp/tasks/main.yml
@@ -0,0 +1,12 @@
+---
+- include: tasks/distro.yml
+
+- name: mltk | Install dependencies
+ package: name={{ item }} state=installed
+ with_items: "{{ pkgnames }}"
+
+- name: mltk | Checkout repository
+ git:
+ repo: "{{ gitsource }}"
+ dest: "{{ gittarget }}"
+ depth: 1