File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 155
155
format : OpenSSH
156
156
with_items : " {{ users }}"
157
157
158
+ - name : Get OpenSSL version
159
+ shell : |
160
+ set -o pipefail
161
+ {{ openssl_bin }} version |
162
+ cut -f 2 -d ' '
163
+ args :
164
+ executable : bash
165
+ register : ssl_version
166
+ run_once : true
167
+
168
+ - name : Set OpenSSL version fact
169
+ set_fact :
170
+ openssl_version : " {{ ssl_version.stdout }}"
171
+
158
172
- name : Build the client's p12
159
173
shell : >
160
174
umask 077;
161
175
{{ openssl_bin }} pkcs12
176
+ {{ (openssl_version is version('3', '>=')) | ternary('-legacy', '') }}
162
177
-in certs/{{ item }}.crt
163
178
-inkey private/{{ item }}.key
164
179
-export
175
190
shell : >
176
191
umask 077;
177
192
{{ openssl_bin }} pkcs12
193
+ {{ (openssl_version is version('3', '>=')) | ternary('-legacy', '') }}
178
194
-in certs/{{ item }}.crt
179
195
-inkey private/{{ item }}.key
180
196
-export
Original file line number Diff line number Diff line change 27
27
[{% for i in _configs_list.files %}
28
28
{% set config = lookup('file', i.path)|from_yaml %}
29
29
'{{ config.server }}'
30
+ '{{ config.IP_subject_alt_name }}'
30
31
{{ ',' if not loop.last else '' }}
31
32
{% endfor %}]
32
33
You can’t perform that action at this time.
0 commit comments