equal
deleted
inserted
replaced
6 |
6 |
7 - name: install site |
7 - name: install site |
8 become: yes |
8 become: yes |
9 template: src="{{nginx_conf_src}}" dest="/etc/nginx/sites-available/{{nginx_conf_dst}}" |
9 template: src="{{nginx_conf_src}}" dest="/etc/nginx/sites-available/{{nginx_conf_dst}}" |
10 notify: restart nginx |
10 notify: restart nginx |
11 |
|
12 # https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx |
|
13 - name: add certbot (letsencrypt) repo |
|
14 become: yes |
|
15 apt_repository: repo="ppa:certbot/certbot" |
|
16 when: nginx_enable_ssl |
|
17 |
11 |
18 - name: install nginx packages |
12 - name: install nginx packages |
19 become: yes |
13 become: yes |
20 apt: name="python-certbot-nginx" |
14 apt: name="python-certbot-nginx" |
21 notify: restart nginx |
15 notify: restart nginx |