This commit is contained in:
17
deploy/deploy.ansible.yml
Normal file
17
deploy/deploy.ansible.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: 部署最新版文档
|
||||
hosts: jazzwhom_server
|
||||
gather_facts: no
|
||||
vars:
|
||||
app_path: /opt/mttu-doc
|
||||
|
||||
tasks:
|
||||
- name: 上传文件
|
||||
ansible.builtin.copy:
|
||||
src: docker-compose.yml
|
||||
dest: "{{ app_path }}/docker-compose.yml"
|
||||
- name: 启动服务
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ app_path }}"
|
||||
state: present
|
||||
pull: yes
|
||||
4
deploy/docker-compose.yml
Normal file
4
deploy/docker-compose.yml
Normal file
@ -0,0 +1,4 @@
|
||||
services:
|
||||
mttu-doc-web:
|
||||
image: gitea.service.jazzwhom.top/mttu-developers/docs:latest
|
||||
restart: unless-stopped
|
||||
3
deploy/inventory.ini
Normal file
3
deploy/inventory.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[jazzwhom_server]
|
||||
# Placeholder target only...
|
||||
deploy_target_host ansible_host=127.0.0.1 ansible_user=placeholder
|
||||
Reference in New Issue
Block a user