nginx-html-root/tasks/main.yaml
changeset 47 3f1771bb0d79
parent 46 f43ad090546d
child 48 4b18b1523ec2
--- a/nginx-html-root/tasks/main.yaml	Sun Jun 14 15:22:25 2020 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
----
-
-- name: install nginx packages
-  become: yes
-  apt: name="nginx"
-
-- name: disable default site
-  become: yes
-  file: path="/etc/nginx/sites-enabled/default" state="absent"
-  notify: restart nginx
-
-- name: create http directory
-  become: yes
-  file: path="{{nginx_html_root}}" state="directory"
-
-- name: install root files
-  become: yes
-  copy: src="{{nginx_html_src}}" dest="{{nginx_html_root}}"
-
-- name: enable nginx service
-  become: yes
-  systemd: name="nginx" enabled="yes" state="started"