websoft9/apps/application.yml
2022-07-11 11:47:26 +08:00

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" }