Added all files
This commit is contained in:
22
examples/006_notify_handlers/webserver.yml
Normal file
22
examples/006_notify_handlers/webserver.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- hosts: webserver
|
||||
become: true
|
||||
tasks:
|
||||
- name: install web components
|
||||
apt: name={{item}} state=present update_cache=yes
|
||||
with_items:
|
||||
- apache2
|
||||
- libapache2-mod-wsgi-py3
|
||||
- python-pip-whl
|
||||
- python3-virtualenv
|
||||
|
||||
- name: ensure apache2 started
|
||||
service: name=apache2 state=started enabled=yes
|
||||
|
||||
- name: ensure mod_wsgi enabled
|
||||
apache2_module: state=present name=wsgi
|
||||
notify: restart apache2
|
||||
|
||||
handlers:
|
||||
- name: restart apache2
|
||||
service: name=apache2 state=restarted
|
||||
Reference in New Issue
Block a user