summaryrefslogtreecommitdiffstats
path: root/mltk-core
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-core
parentinitial commit (diff)
downloadansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.tar.gz
ansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.tar.xz
ansible-bwlp-782c29d293fd0b36770ad9cc23b43dcd78345732.zip
initial state
Diffstat (limited to 'mltk-core')
-rw-r--r--mltk-core/tasks/main.yml14
-rw-r--r--mltk-core/tasks/repo.yml5
2 files changed, 19 insertions, 0 deletions
diff --git a/mltk-core/tasks/main.yml b/mltk-core/tasks/main.yml
new file mode 100644
index 0000000..95a7cd7
--- /dev/null
+++ b/mltk-core/tasks/main.yml
@@ -0,0 +1,14 @@
+---
+- import_tasks: tasks/repo.yml
+
+- name: mltk | Install git
+ package:
+ name: git
+ state: present
+
+- name: mltk | Checkout repository
+ git:
+ repo: "{{ mltk_git_source }}"
+ dest: "{{ mltk_git_target }}"
+ version: "{{ mltk_git_branch }}"
+ depth: 1
diff --git a/mltk-core/tasks/repo.yml b/mltk-core/tasks/repo.yml
new file mode 100644
index 0000000..b16f97a
--- /dev/null
+++ b/mltk-core/tasks/repo.yml
@@ -0,0 +1,5 @@
+---
+- set_fact:
+ mltk_git_source: "git://git.openslx.org/openslx-ng/mltk"
+ mltk_git_target: "/opt/mltk"
+ mltk_git_branch: "installer"