diff --git a/tasks/config.yml b/tasks/config.yml new file mode 100644 index 0000000..3bbc76c --- /dev/null +++ b/tasks/config.yml @@ -0,0 +1,6 @@ +--- +- name: Enable nginx service + service: + name: nginx + enabled: yes + state: started diff --git a/tasks/install.yml b/tasks/install.yml new file mode 100644 index 0000000..a324c01 --- /dev/null +++ b/tasks/install.yml @@ -0,0 +1,9 @@ +--- +- name: Installing nginx repo rpm + yum: + name: http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm + +- name: Installing NGINX + yum: + name: nginx + state: latest diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..8570db6 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,3 @@ +--- +- include: install.yml +- include: config.yml