equal
deleted
inserted
replaced
|
1 --- |
|
2 |
|
3 - name: install nginx packages |
|
4 become: yes |
|
5 apt: name="nginx" |
|
6 |
|
7 - name: disable default site |
|
8 become: yes |
|
9 file: path="/etc/nginx/sites-enabled/default" state="absent" |
|
10 notify: restart nginx |
|
11 |
|
12 - name: create http directory |
|
13 become: yes |
|
14 file: path="{{nginx_html_root}}" state="directory" |
|
15 |
|
16 - name: install root files |
|
17 become: yes |
|
18 copy: src="{{nginx_html_src}}" dest="{{nginx_html_root}}" |
|
19 |
|
20 - name: enable nginx service |
|
21 become: yes |
|
22 systemd: name="nginx" enabled="yes" state="started" |