removed giteaUninstall var

This commit is contained in:
2023-02-02 16:04:44 -06:00
parent feaea47028
commit 06548bf135
8 changed files with 5 additions and 36 deletions

View File

@@ -22,14 +22,12 @@
dest: /etc/nginx/conf.d/git.{{ domain }}.conf
force: no
notify: setup nginx
when: giteaPort is defined and giteaUninstall == false
- name: Uninstall nginx config for git.{{ domain }}
file:
path: /etc/nginx/conf.d/git.{{ domain }}.conf
state: absent
notify: setup nginx
when: giteaPort is not defined or (giteaUninstall is defined and giteaUninstall)
- name: Install nginx config for our Hidden Service
template:

View File

@@ -4,7 +4,6 @@
- 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
- name: Reload Nginx
systemd: