Files
tp2_ansible/lamp_ubuntu1804_2hosts_withroles/site.yml
Olivier Barais 8545eb3d66 inisital commit
2021-12-02 11:43:36 +01:00

27 lines
460 B
YAML

---
# 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