websoft9/apps/application.yml
2022-07-11 11:19:15 +08:00

28 lines
724 B
YAML

- name: Deploy Application
hosts: all
become: yes
become_method: sudo
vars_files:
- vars/main.yml
pre_tasks:
- debug:
msg: "{{ dependencies }}"
- name: Git Clone StackHub repository
block:
- name: Clone {{appname}} in Websoft9
git:
repo: "https://github.com/Websoft9/StackHub.git"
dest: "/tmp/StackHub"
roles:
- { role: role_common, tags: "role_common" }
- { role: role_cloud, tags: "role_cloud" }
- { role: role_nginx, tags: "role_nginx" }
- { role: "{{appname}}", tags: "{{appname}}" }
- { role: role_init, tags: "role_init" }
- { role: role_preend, tags: "preend" }
- { role: role_end, tags: "role_end" }