diff options
Diffstat (limited to 'mltk-core/tasks')
-rw-r--r-- | mltk-core/tasks/main.yml | 14 | ||||
-rw-r--r-- | mltk-core/tasks/repo.yml | 5 |
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" |