File tree Expand file tree Collapse file tree 2 files changed +52
-216
lines changed Expand file tree Collapse file tree 2 files changed +52
-216
lines changed Original file line number Diff line number Diff line change @@ -716,7 +716,12 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
716
716
template_file: http/default.conf.j2
717
717
conf_file_name: default.conf
718
718
conf_file_location: /etc/nginx/conf.d/
719
- port: 80
719
+ listen:
720
+ listen_localhost:
721
+ #ip: 0.0.0.0
722
+ port: 80
723
+ opts:
724
+ - default_server
720
725
server_name: localhost
721
726
error_page: /usr/share/nginx/html
722
727
autoindex: false
@@ -737,8 +742,8 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
737
742
sticky_cookie: false
738
743
servers:
739
744
frontend_server_1:
740
- address: localhost
741
- port: 80
745
+ address: 0.0.0.0
746
+ port: 8081
742
747
weight: 1
743
748
health_check: max_fails=3 fail_timeout=5s
744
749
upstream_2:
@@ -749,10 +754,52 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
749
754
sticky_cookie: false
750
755
servers:
751
756
backend_server_1:
752
- address: localhost
753
- port: 8080
757
+ address: 0.0.0.0
758
+ port: 8082
754
759
weight: 1
755
760
health_check: max_fails=3 fail_timeout=5s
761
+ frontend:
762
+ template_file: http/default.conf.j2
763
+ conf_file_name: frontend_default.conf
764
+ conf_file_location: /etc/nginx/conf.d/
765
+ listen:
766
+ listen_localhost:
767
+ ip: 0.0.0.0
768
+ port: 8081
769
+ opts: []
770
+ server_name: localhost
771
+ error_page: /usr/share/nginx/html
772
+ autoindex: false
773
+ web_server:
774
+ locations:
775
+ frontend_site:
776
+ location: /
777
+ proxy_hide_headers:
778
+ - X-Powered-By
779
+ html_file_location: /usr/share/nginx/html
780
+ html_file_name: index.html
781
+ autoindex: false
782
+ http_demo_conf: false
783
+ backend:
784
+ template_file: http/default.conf.j2
785
+ conf_file_name: backend_default.conf
786
+ conf_file_location: /etc/nginx/conf.d/
787
+ listen:
788
+ listen_localhost:
789
+ ip: 0.0.0.0
790
+ port: 8082
791
+ opts: []
792
+ server_name: localhost
793
+ error_page: /usr/share/nginx/html
794
+ autoindex: false
795
+ web_server:
796
+ locations:
797
+ backend_site:
798
+ location: /
799
+ html_file_location: /usr/share/nginx/html
800
+ html_file_name: index.html
801
+ autoindex: false
802
+ http_demo_conf: false
756
803
` ` `
757
804
758
805
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments