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