mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
31 lines
775 B
YAML
31 lines
775 B
YAML
- name: Deploy Application
|
|
hosts: all
|
|
become: yes
|
|
become_method: sudo
|
|
|
|
vars_files:
|
|
- vars/main.yml
|
|
|
|
pre_tasks:
|
|
- name: test
|
|
shell: cat /tmp/test
|
|
register: rt
|
|
- debug:
|
|
msg: "{{rt}}"
|
|
|
|
- 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" }
|