From 813f92114dfc9a2e2d8306e92d6cbf6f212a4df6 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 5 Jul 2022 14:39:16 +0800 Subject: [PATCH] Delete test.yml --- apps/roles/install/tasks/test.yml | 35 ------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 apps/roles/install/tasks/test.yml diff --git a/apps/roles/install/tasks/test.yml b/apps/roles/install/tasks/test.yml deleted file mode 100644 index b73e0105..00000000 --- a/apps/roles/install/tasks/test.yml +++ /dev/null @@ -1,35 +0,0 @@ -- name: Docker compose up - shell: | - docker compose up -d - sleep 30 - args: - chdir: "{{installpath}}/{{appname}}" - -- name: Recursively create directory for {{appname}} - file: - path: "{{ item }}" - state: directory - recurse: yes - with_items: - - "{{installpath}}/{{appname}}/data" - -- name: Add softlink of all volumes for app root directory - block: - - name: Get volumes name - shell: docker compose config --volumes - register: volume_names - args: - chdir: "{{installpath}}/{{appname}}" - - - name: Create softlink of volumes - file: - src: "/var/lib/docker/volumes/{{appname}}_{{item}}/_data" - dest: "{{installpath}}/{{appname}}/data/{{item}}" - state: link - force: yes - loop: "{{volume_names.stdout_lines}}" - -- name: Check Docker Container Service - shell: docker ps --format \{\{'json .'\}\}| jq -s map\(\{containername:'.Names',state:'.State'\}\) - register: check_container_service - notify: check_container_service