Ansible nginx role using ansible-galaxy

This commit is contained in:
2019-08-15 07:27:57 +00:00
parent eeafed8f36
commit c42ffc0edc
16 changed files with 319 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
---
- name: Copy nginx configuration file
copy: src=files/nginx.conf dest=/etc/nginx/nginx.conf
- name: Copy index.html file
copy: src=files/index.html dest=/var/www/html
notify:
- restart nginx

View File

@@ -0,0 +1,4 @@
---
- name: Install nginx Package
apt: name=nginx state=latest

View File

@@ -0,0 +1,7 @@
---
# tasks file for /etc/ansible/roles/nginx
- import_tasks: install.yml
- import_tasks: configure.yml
- import_tasks: service.yml