LTS: Performance testing
[csit.git] / resources / tools / testbed-setup / ansible / roles / tg / tasks / main.yaml
index 54001a7..d7a9ed8 100644 (file)
@@ -1,6 +1,28 @@
 ---
 # file: roles/tg/tasks/main.yaml
 
-- name: Ubuntu specific
-  import_tasks: ubuntu_x86_64.yaml
-  when: ansible_distribution|lower == 'ubuntu' and ansible_machine == 'x86_64'
+- name: TG - Copy csit-initialize-docker-tg.sh
+  copy:
+   src: "files/csit-initialize-docker-tg.sh"
+   dest: "/usr/local/bin/csit-initialize-docker-tg.sh"
+   owner: "root"
+   group: "root"
+   mode: "744"
+  when: docker_tg is defined
+  tags:
+    - docker-tg
+
+- name: TG - Start csit-initialize-docker-tg.service
+  copy:
+   src: "files/csit-initialize-docker-tg.service"
+   dest: "/etc/systemd/system/"
+   owner: "root"
+   group: "root"
+   mode: "644"
+  notify:
+    - "Start csit-initialize-docker-tg.service"
+  when: docker_tg is defined
+  tags:
+    - docker-tg
+
+- meta: flush_handlers