Added all files
This commit is contained in:
18
examples/004_services/playbooks/stack_restart.yml
Normal file
18
examples/004_services/playbooks/stack_restart.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- hosts: database
|
||||
become: true
|
||||
tasks:
|
||||
- name: reiniciar mysql
|
||||
service: name=mysql state=restarted
|
||||
|
||||
- hosts: loadbalancer
|
||||
become: true
|
||||
tasks:
|
||||
- name: reiniciar nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- hosts: webserver
|
||||
become: true
|
||||
tasks:
|
||||
- name: reiniciar apache
|
||||
service: name=apache2 state=restarted
|
||||
Reference in New Issue
Block a user