mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
Update application.yml
This commit is contained in:
parent
64864edccf
commit
fffb8028a7
@ -9,9 +9,7 @@
|
|||||||
- roles/{{appname}}/defaults/main.yml
|
- roles/{{appname}}/defaults/main.yml
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Install {{appname}}
|
- name: Excute base roles for apps
|
||||||
include_tasks: tasks/install.yml
|
|
||||||
- name: Excute base roles for apps(step1)
|
|
||||||
block:
|
block:
|
||||||
- name: Include base roles
|
- name: Include base roles
|
||||||
include_role:
|
include_role:
|
||||||
@ -20,7 +18,7 @@
|
|||||||
- role_common
|
- role_common
|
||||||
- role_cloud
|
- role_cloud
|
||||||
|
|
||||||
- name: Git Clone app docker repository(step2)
|
- name: Git Clone app docker repository
|
||||||
block:
|
block:
|
||||||
- name: Create app directory
|
- name: Create app directory
|
||||||
shell: mkdir -p {{installpath}}
|
shell: mkdir -p {{installpath}}
|
||||||
@ -31,7 +29,7 @@
|
|||||||
repo: "https://github.com/Websoft9/docker-{{appname}}.git"
|
repo: "https://github.com/Websoft9/docker-{{appname}}.git"
|
||||||
dest: "{{installpath}}/{{appname}}"
|
dest: "{{installpath}}/{{appname}}"
|
||||||
|
|
||||||
- name: Excute Preparation if have pre.yml(step3)
|
- name: Excute Preparation if have pre.yml
|
||||||
block:
|
block:
|
||||||
- name: Check if pre.yml exists
|
- name: Check if pre.yml exists
|
||||||
uri:
|
uri:
|
||||||
@ -46,7 +44,11 @@
|
|||||||
|
|
||||||
- name: Install {{appname}}
|
- name: Install {{appname}}
|
||||||
include_tasks: tasks/install.yml
|
include_tasks: tasks/install.yml
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- name: check_container_service
|
||||||
|
debug:
|
||||||
|
var: check_container_service.stdout
|
||||||
roles:
|
roles:
|
||||||
- { role: role_nginx, tags: "role_nginx" }
|
- { role: role_nginx, tags: "role_nginx" }
|
||||||
- { role: "{{appname}}", tags: "{{appname}}" }
|
- { role: "{{appname}}", tags: "{{appname}}" }
|
||||||
|
Loading…
Reference in New Issue
Block a user