File tree 4 files changed +23
-8
lines changed
4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ django_recreate_virtual_env: false
54
54
# # pipenv
55
55
django_use_pipenv : false
56
56
57
+ # # dependency pip packages
58
+ # # packages you'd want to install before install packages in the requirement's file
59
+ django_dependency_pip_packages : []
60
+
57
61
# # pip
58
62
django_use_regular_old_pip : true
59
63
django_pip_paths :
@@ -63,6 +67,7 @@ django_pip_paths:
63
67
django_pip_packages :
64
68
- celery
65
69
- uwsgi
70
+ django_pip_packages_extra_args :
66
71
67
72
# Django
68
73
django_local_settings_path :
Original file line number Diff line number Diff line change 16
16
template :
17
17
src : templates/etc/default/celeryd.j2
18
18
dest : /etc/default/celeryd-{{ django_system_user }}
19
- mode : 0644
19
+ mode : " 0644"
20
20
21
21
- name : Copy celerybeat default script
22
22
template :
23
23
src : templates/etc/default/celerybeat.j2
24
24
dest : /etc/default/celerybeat-{{ django_system_user }}
25
- mode : 0644
25
+ mode : " 0644"
26
26
27
27
- name : Copy celeryd upstart script
28
28
template :
29
29
src : " etc/systemd/celeryd.service.j2"
30
30
dest : " /etc/systemd/system/{{ django_celeryd_service_name }}.service"
31
- mode : 0644
31
+ mode : " 0644"
32
32
notify :
33
33
- restart_celery
34
34
35
35
- name : Copy celerybeat upstart script
36
36
template :
37
37
src : " etc/systemd/celerybeat.service.j2"
38
38
dest : " /etc/systemd/system/{{ django_celerybeat_service_name }}.service"
39
- mode : 0644
39
+ mode : " 0644"
40
40
notify :
41
- - restart_celery
41
+ - restart_celery
Original file line number Diff line number Diff line change 111
111
name : pip
112
112
state : present
113
113
114
+ - name : Install dependency Python packages using pip
115
+ pip :
116
+ name : " {{ django_dependency_pip_packages }}"
117
+ state : present
118
+ virtualenv : " {{ django_venv_path }}"
119
+ virtualenv_python : " {{ django_python_version }}"
120
+ become : true
121
+ become_user : " {{ django_system_user }}"
122
+
114
123
- name : Install Python packages using pip
115
124
pip :
116
125
state : present
154
163
state : present
155
164
virtualenv : " {{ django_venv_path }}"
156
165
virtualenv_python : " {{ django_python_version }}"
166
+ extra_args : " {{ django_pip_packages_extra_args }}"
157
167
become : true
158
168
become_user : " {{ django_system_user }}"
159
169
Original file line number Diff line number Diff line change 3
3
template :
4
4
src : " etc/default/django_service_name.j2"
5
5
dest : " /etc/default/{{ django_service_name }}"
6
- mode : 0640
6
+ mode : " 0640"
7
7
owner : " {{ django_system_user }}"
8
8
group : " {{ django_system_group }}"
9
9
notify :
13
13
template :
14
14
src : " etc/systemd/django.service.j2"
15
15
dest : /etc/systemd/system/{{ item }}
16
- mode : 0644
16
+ mode : " 0644"
17
17
notify :
18
18
- restart_service
19
19
with_items :
20
- - " {{ django_service_name }}.service"
20
+ - " {{ django_service_name }}.service"
You can’t perform that action at this time.
0 commit comments