summaryrefslogtreecommitdiffstats
path: root/setup-bwlp/tasks
diff options
context:
space:
mode:
authorJonathan Bauer2017-05-29 12:41:33 +0200
committerJonathan Bauer2017-05-29 12:41:33 +0200
commit7eafd1c12b12a2cfdbfd76b40ff416826e19079d (patch)
tree063408b254a2dadfc5ae13e5f9da1b1c9c87729d /setup-bwlp/tasks
parentadded support for ROOTPW (diff)
downloadansible-dracut-7eafd1c12b12a2cfdbfd76b40ff416826e19079d.tar.gz
ansible-dracut-7eafd1c12b12a2cfdbfd76b40ff416826e19079d.tar.xz
ansible-dracut-7eafd1c12b12a2cfdbfd76b40ff416826e19079d.zip
add skeleton setup-bwlp role
this role will handle the mltk call until proper ansible modules are written
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