aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-04-28 11:27:25 +0000
committerpmikus <peter.mikus@protonmail.ch>2023-04-28 11:27:25 +0000
commitd14b7a69e628582b9132abc1b6e09aada68c0077 (patch)
tree4ac651bd5240093f82580656bf5a95639c976fa3 /fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml
parentf451c7a50bc663a6727f01873b8663bfa9ae22e1 (diff)
feat(ansible): Refactor docker-image roles
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I6731e55b9643f46463c16f68e4986e3cb61f843f
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