-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnginx-uwsgi.yml
61 lines (56 loc) · 1.48 KB
/
nginx-uwsgi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
# https://go.chriswarrick.com/pyweb
- name: Install nginx and uWSGI for a Python web application (pyweb)
hosts: nginx_uwsgi
become: yes
become_user: root
# talk to all hosts just so we can learn about them
- hosts: all
tasks:
- group_by: key=os_{{ ansible_distribution }}
- debug: msg={{ ansible_distribution }}
- hosts: os_Debian:os_Ubuntu
gather_facts: False
become: yes
become_user: root
roles:
- install_Debian_Ubuntu
- setup_venv_app
- patch_config_Debian_Ubuntu
- configure_nginx_uwsgi
- create_service_Debian_Ubuntu
- start_services
- hosts: os_Fedora
gather_facts: False
become: yes
become_user: root
roles:
- install_Fedora
- {role: cleanup_selinux_EL_Fedora, when: not skip_selinux}
- setup_venv_app
- patch_config_EL_Fedora
- configure_nginx_uwsgi
- {role: selinux_policy_EL_Fedora, when: not skip_selinux}
- start_services
- hosts: os_CentOS:os_AlmaLinux:os_Rocky
gather_facts: False
become: yes
become_user: root
roles:
- install_EL
- {role: cleanup_selinux_EL_Fedora, when: not skip_selinux}
- setup_venv_app
- patch_config_EL_Fedora
- configure_nginx_uwsgi
- {role: selinux_policy_EL_Fedora, when: not skip_selinux}
- start_services
- hosts: os_Archlinux
gather_facts: False
become: yes
become_user: root
roles:
- install_Archlinux
- setup_venv_app
- patch_config_Archlinux
- configure_nginx_uwsgi
- start_services