File tree 1 file changed +10
-0
lines changed
1 file changed +10
-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 : Gather the package facts
159
+ ansible.builtin.package_facts :
160
+ manager : auto
161
+
162
+ - name : Get OpenSSL version
163
+ set_fact :
164
+ openssl_version : " {{ ansible_facts.packages['openssl'][0]['version'] }}"
165
+
158
166
- name : Build the client's p12
159
167
shell : >
160
168
umask 077;
161
169
{{ openssl_bin }} pkcs12
170
+ {{ (openssl_version is version('3', '>=')) | ternary('-legacy', '') }}
162
171
-in certs/{{ item }}.crt
163
172
-inkey private/{{ item }}.key
164
173
-export
175
184
shell : >
176
185
umask 077;
177
186
{{ openssl_bin }} pkcs12
187
+ {{ (openssl_version is version('3', '>=')) | ternary('-legacy', '') }}
178
188
-in certs/{{ item }}.crt
179
189
-inkey private/{{ item }}.key
180
190
-export
You can’t perform that action at this time.
0 commit comments