This repository was archived by the owner on Aug 13, 2024. It is now read-only.
File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,17 @@ nginx_set_real_ip_from_cloudflare: True
103
103
nginx_amplify : true
104
104
nginx_amplify_api_key : " your_api_key_goes_here"
105
105
nginx_amplify_update_agent : true
106
+
107
+ # Define modules (only for RHEL & CentOS).
108
+ # available modules:.
109
+ # - mod-http-geoip
110
+ # - mod-http-image-filter
111
+ # - mod-http-perl
112
+ # - mod-http-xslt-filter
113
+ # - mod-mail
114
+ # - mod-stream
115
+ nginx_module_configs :
116
+ - mod-http-geoip
106
117
` ` `
107
118
108
119
Examples
Original file line number Diff line number Diff line change 59
59
- reload nginx
60
60
when : nginx_stream_params or nginx_stream_configs
61
61
62
- - name : Create configuration for modules
63
- template :
64
- src : module.conf.j2
65
- dest : " {{ nginx_conf_dir }}/modules-available/{{ item }}.conf"
66
- loop : " {{ nginx_module_configs }}"
67
- notify :
68
- - reload nginx
69
-
70
62
- name : Create links for modules-enabled
71
63
file :
72
64
state : link
73
- src : " {{ nginx_conf_dir }}/ modules-available /{{ item }}.conf"
65
+ src : " /urs/share/nginx/ modules/{{ item }}.conf"
74
66
dest : " {{ nginx_conf_dir }}/modules-enabled/{{ item }}.conf"
75
67
with_items : " {{ nginx_module_configs }}"
76
68
when : (item not in nginx_remove_modules) and (item not in nginx_disabled_modules)
77
69
ignore_errors : " {{ ansible_check_mode }}"
78
70
notify :
79
71
- reload nginx
72
+ when : ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
You can’t perform that action at this time.
0 commit comments