equal
deleted
inserted
replaced
|
1 --- |
|
2 |
|
3 - name: install site |
|
4 become: yes |
|
5 template: src="{{nginx_conf_src}}" dest="/etc/nginx/sites-available/{{nginx_conf_dst}}" |
|
6 notify: restart nginx |
|
7 |
|
8 - name: install certbot in nginx |
|
9 become: yes |
|
10 command: "certbot certonly --nginx -n --agree-tos -d {{nginx_server_name}} -m {{nginx_admin_email}}" |
|
11 notify: restart nginx |
|
12 when: nginx_enable_ssl |
|
13 |
|
14 - name: enable site |
|
15 become: yes |
|
16 file: |
|
17 src: "/etc/nginx/sites-available/{{nginx_conf_dst}}" |
|
18 dest: "/etc/nginx/sites-enabled/{{nginx_conf_dst}}" |
|
19 state: "link" |
|
20 notify: restart nginx |