aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml')
-rw-r--r--fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml43
1 files changed, 0 insertions, 43 deletions
diff --git a/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml b/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml
deleted file mode 100644
index f0a93c06ee..0000000000
--- a/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
----
-# file: roles/csit_sut_image/tasks/main.yaml
-
-- name: Create a directory if it does not exist
- ansible.builtin.file:
- path: "/opt/csit-sut/"
- state: "directory"
- mode: 0755
- tags:
- - csit-sut-image
-
-- name: Copy Build Items
- ansible.builtin.copy:
- src: "{{ item }}"
- dest: "/opt/csit-sut/"
- owner: "root"
- group: "root"
- mode: 0755
- with_items:
- - Dockerfile
- - supervisord.conf
- tags:
- - csit-sut-image
-
-- name: Build CSIT SUT Docker Image
- ansible.builtin.shell: "docker build -t csit_sut-ubuntu2204:local ."
- args:
- chdir: "/opt/csit-sut"
- async: 3000
- poll: 0
- register: docker_built
- tags:
- - csit-sut-image
-
-- name: Check if CSIT SUT Docker Image is Built
- async_status:
- jid: "{{ docker_built.ansible_job_id }}"
- register: docker_built
- until: docker_built.finished
- delay: 10
- retries: 300
- tags:
- - csit-sut-image \ No newline at end of file