aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml
index 0b32002545..a7ab90d34a 100644
--- a/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml
@@ -12,3 +12,27 @@
- name: Install TRex
include_tasks: 'trex.yaml'
tags: install-trex
+
+- name: 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: 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