diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index 465eca3..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -springbootstart \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index 1c7d7c9..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml index c8ff0fb..e79da7e 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -2,9 +2,5 @@ - - - - \ No newline at end of file diff --git a/playbook/roles/springbootstart-test/tasks/main.yml b/playbook/roles/springbootstart-test/tasks/main.yml index d4ec19b..bec9ce0 100644 --- a/playbook/roles/springbootstart-test/tasks/main.yml +++ b/playbook/roles/springbootstart-test/tasks/main.yml @@ -1,22 +1,22 @@ --- -- name: Ensures /home/work/springbootstart/springbootstart_backend_test dir exists - file: path=/home/work/springbootstart/springbootstart_backend_test state=directory +- name: Ensures /home/work/lia/duoji_test dir exists + file: path=/home/work/lipo/duoji_test state=directory - name: stop admin Service - shell: docker-compose -f /home/work/springbootstart/springbootstart_backend_test/docker-compose.yml down + shell: docker-compose -f /home/work/lia/duoji_test/docker-compose.yml down ignore_errors: True - name: copy admin docker-compose.yml copy: src: docker-compose.yml - dest: /home/work/springbootstart/springbootstart_backend_test/docker-compose.yml + dest: /home/work/lia/duoji_test/docker-compose.yml backup: yes - name: docker-pull shell: docker pull {{ DOCKER_REPO }}/{{ IMAGE }} && docker tag {{ DOCKER_REPO }}/{{ IMAGE }} {{ IMAGE }} && docker rmi {{ DOCKER_REPO }}/{{ IMAGE }} - name: modify docker-compose.yml - shell: cd /home/work/springbootstart/springbootstart_backend_test && sed -i "s/springbootstart:1.0.0/{{ IMAGE }}/g" docker-compose.yml + shell: cd /home/work/lia/duoji_test && sed -i "s/springbootstart:1.0.0/{{ IMAGE }}/g" docker-compose.yml - name: start Service - shell: docker-compose -f /home/work/springbootstart/springbootstart_backend_test/docker-compose.yml up -d + shell: docker-compose -f /home/work/lia/duoji_test/docker-compose.yml up -d diff --git a/playbook/test-hosts b/playbook/test-hosts index cb9b43a..3a97d0f 100644 --- a/playbook/test-hosts +++ b/playbook/test-hosts @@ -1 +1 @@ -192.168.1.232 \ No newline at end of file +192.168.26.214 diff --git a/playbook/test.yml b/playbook/test.yml index 4b90468..3159f60 100644 --- a/playbook/test.yml +++ b/playbook/test.yml @@ -1,6 +1,6 @@ --- - name: deploy springbootstart hosts: all - remote_user: work + remote_user: root roles: - springbootstart-test