1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_nginx.git synced 2024-08-16 16:19:48 +02:00
ansible_role_nginx/tasks/main.yml
2020-11-02 04:52:31 +01:00

51 lines
772 B
YAML

---
- name: Install nginx
include_tasks: installation.yml
tags:
- repository
- installation
- name: Configure nginx
include_tasks: nginx.yml
tags:
- configuration
- nginx
- dhparam
- name: Start nginx webserver
service:
name: nginx
state: started
enabled: yes
tags:
- operation
- nginx
- name: Configure nginx default site
include_tasks: default_site.yml
tags:
- configuration
- nginx
- sites
- name: Configure nginx sites
include_tasks: single_site.yml
with_items: '{{ nginx_sites }}'
loop_control:
loop_var: site
tags:
- configuration
- nginx
- sites
- name: Configure acmetool and obtain certificates
include_tasks: acme.yml
tags:
- configuration
- acme