Add logic for hosts without nginx that still need certs

This commit is contained in:
2026-01-14 20:48:56 -07:00
parent a63ed9cbd2
commit 4e89a01160

View File

@@ -2,6 +2,7 @@
service:
name: nginx
state: stopped
when: "'nginx' in ansible_facts.packages" # Checks if 'nginx' key exists in the gathered facts
- name: Generate initial cert
command:
@@ -13,3 +14,4 @@
service:
name: nginx
state: started
when: "'nginx' in ansible_facts.packages" # Checks if 'nginx' key exists in the gathered facts