Check if certs already exists and skip the generation
This commit is contained in:
parent
6427c5b4cc
commit
4050cef2be
@ -1,4 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
- name: Check if certificates already exists
|
||||||
|
stat:
|
||||||
|
path: "{{ local_certs_path }}"
|
||||||
|
register: certificates_folder
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: Local action | Create local temporary directory for certificates generation
|
- name: Local action | Create local temporary directory for certificates generation
|
||||||
@ -70,3 +76,5 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
tags:
|
tags:
|
||||||
- generate-certs
|
- generate-certs
|
||||||
|
when:
|
||||||
|
- not certificates_folder.stat.exists
|
||||||
Loading…
Reference in New Issue
Block a user