websoft9/apps/application.yml

25 lines
582 B
YAML
Raw Normal View History

2022-06-27 09:18:46 +08:00
- name: Deploy Application
2022-05-10 17:35:30 +08:00
hosts: all
become: yes
become_method: sudo
vars_files:
- vars/main.yml
2022-07-05 10:38:57 +08:00
2022-05-11 17:39:42 +08:00
pre_tasks:
2022-07-05 16:54:57 +08:00
- name: Excute base roles for apps
2022-05-13 08:59:20 +08:00
block:
2022-06-30 17:45:00 +08:00
- name: Include base roles
include_role:
name: "{{item}}"
with_items:
2022-07-01 09:10:45 +08:00
- role_common
- role_cloud
2022-07-05 16:55:17 +08:00
2022-05-10 17:35:30 +08:00
roles:
2022-05-11 09:51:13 +08:00
- { role: role_nginx, tags: "role_nginx" }
2022-07-05 10:42:12 +08:00
- { role: "{{appname}}", tags: "{{appname}}" }
2022-05-11 09:51:13 +08:00
- { role: role_init, tags: "role_init" }
- { role: role_preend, tags: "preend" }
- { role: role_end, tags: "role_end" }