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:
|
||||
|
||||
- name: Local action | Create local temporary directory for certificates generation
|
||||
@ -69,4 +75,6 @@
|
||||
run_once: true
|
||||
delegate_to: localhost
|
||||
tags:
|
||||
- generate-certs
|
||||
- generate-certs
|
||||
when:
|
||||
- not certificates_folder.stat.exists
|
||||
Loading…
Reference in New Issue
Block a user