openpunk-ansible/roles/nginx/tasks/setup.yml

13 lines
426 B
YAML
Raw Normal View History

2023-01-16 03:54:03 +00:00
---
- name: Setup certbot for {{ domain }}
shell: "certbot --nginx --non-interactive --agree-tos -m {{ contact_email }} -d {{ domain }}"
- name: Setup certbot for git.{{ domain }}
shell: "certbot --nginx --non-interactive --agree-tos -m {{ contact_email }} -d git.{{ domain }}"
when: giteaPort is defined and giteaUninstall == false
2023-01-16 03:54:03 +00:00
- name: Reload Nginx
systemd:
name: nginx
enabled: yes
state: restarted