Commit 9aa825f5 authored by Alain Takoudjou's avatar Alain Takoudjou Committed by Thomas Gambier

playbook: remove invalid certificate in slapos.cfg

We need to remove invalid signature certificate for networkcache from current slapos.cfg file because it prevent slapos to download compiled SR from networkcache.

For more information about this problem, see: nexedi/slapos@04e5d4aa

/reviewed-on nexedi/slapos.package!93
parent 017fe995
......@@ -39,3 +39,20 @@
- name: Increase the maximum of subprocesses for cron
copy: src="etc_systemd_system_cron_service_d_override.conf" dest="/etc/systemd/system/cron.service.d/override.conf" mode=0644 owner=root group=root
when: systemd_version.stdout | int > 228
- stat: path=/etc/opt/slapos/slapos.cfg
register: slapos_cfg
- name: Remove invalid shacache certificate title
lineinfile:
dest: /etc/opt/slapos/slapos.cfg
line: "# Romain Courteaud"
state: absent
when: slapos_cfg.stat.exists == True
- name: Remove invalid shacache certificate
replace:
dest: /etc/opt/slapos/slapos.cfg
regexp: '^signature-certificate-list =$[^.*$]+^\s+QUUGLQ==\s^.*END\sCERTIFICATE-----$'
replace: 'signature-certificate-list ='
when: slapos_cfg.stat.exists == True
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment