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