Add logic for hosts without nginx that still need certs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user