File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 11
11
ansible.builtin.import_tasks : storage.yml
12
12
- name : Configure MSL-API
13
13
ansible.builtin.import_tasks : config.yml
14
+ - name : Add self-signed certificate to CA certificate file on development
15
+ ansible.builtin.import_tasks : update-cacerts.yml
16
+ when : epos_msl_environment == "development"
Original file line number Diff line number Diff line change
1
+ ---
2
+ # copyright Utrecht University
3
+
4
+ - name : Check whether local certificate has already been added to the CA certificates
5
+ ansible.builtin.stat :
6
+ path : /etc/ssl/certs/ca-certificates_updated.txt
7
+ register : msl_api_certs_updated
8
+
9
+
10
+ - name : Add local certificate to CA certificates
11
+ ansible.builtin.shell :
12
+ cmd : " tee -a /etc/ssl/certs/ca-certificates.crt < /etc/ssl/certs/localhost_and_chain.crt"
13
+ when : not msl_api_certs_updated.stat.exists
14
+
15
+
16
+ - name : Add file to record CA certificates have been updated
17
+ ansible.builtin.file :
18
+ path : /etc/ssl/certs/ca-certificates_updated.txt
19
+ state : touch
20
+ mode : " 0644"
21
+ when : not msl_api_certs_updated.stat.exists
You can’t perform that action at this time.
0 commit comments