2019-10-27 23:32:25 +00:00
|
|
|
---
|
|
|
|
- name: install passlib
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
loop:
|
|
|
|
- python-passlib
|
|
|
|
- python3-passlib
|
|
|
|
|
|
|
|
- name: install package
|
|
|
|
package:
|
|
|
|
name: "{{ nginx_package_name }}"
|
|
|
|
state: "{{ nginx_package_state }}"
|
|
|
|
|
2019-11-24 22:31:06 +00:00
|
|
|
- name: configure default virtual host
|
|
|
|
template:
|
|
|
|
src: default.j2
|
|
|
|
dest: /etc/nginx/sites-available/default
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: reload nginx
|
|
|
|
|
2019-10-27 23:32:25 +00:00
|
|
|
- name: manage service
|
|
|
|
service:
|
|
|
|
name: "{{ nginx_service_name }}"
|
|
|
|
state: "{{ nginx_service_state }}"
|
|
|
|
enabled: "{{ nginx_service_enabled }}"
|