inisital commit
This commit is contained in:
26
lamp_ubuntu1804_2hosts_withroles/site.yml
Normal file
26
lamp_ubuntu1804_2hosts_withroles/site.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# This playbook deploys the whole application stack in this site.
|
||||
|
||||
- name: apply common configuration to all nodes
|
||||
hosts: all
|
||||
remote_user: vagrant
|
||||
become: yes
|
||||
|
||||
roles:
|
||||
- common
|
||||
|
||||
- name: configure and deploy the webservers and application code
|
||||
hosts: webservers
|
||||
remote_user: vagrant
|
||||
become: yes
|
||||
|
||||
roles:
|
||||
- web
|
||||
|
||||
- name: deploy MySQL and configure the databases
|
||||
hosts: dbservers
|
||||
remote_user: vagrant
|
||||
become: yes
|
||||
|
||||
roles:
|
||||
- db
|
||||
Reference in New Issue
Block a user