Commit 4b9e47b1 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: add missing download-dir-url in /etc/opt/slapcache.cfg

also do not check for invalid certificate in slapos.cfg anymore. It's
been more than 3 years that the certificate is invalid. All our machines
are updated.
parent 06b6a8ee
Pipeline #21913 failed with stage
in 0 seconds
...@@ -50,22 +50,17 @@ ...@@ -50,22 +50,17 @@
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 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 when: systemd_version.stdout | int > 228
- stat: path=/etc/opt/slapos/slapos.cfg - stat: path=/etc/opt/slapcache.cfg
register: slapos_cfg register: slapcache_cfg
- name: Remove invalid shacache certificate title - name: Add missing download-dir-url entry in slapcache.cfg
lineinfile: lineinfile:
dest: /etc/opt/slapos/slapos.cfg dest: /etc/opt/slapcache.cfg
line: "# Romain Courteaud" regexp: "^download-dir-url"
state: absent line: "download-dir-url = http://shadir.nxdcdn.com"
when: slapos_cfg.stat.exists == True insertafter: "^download-binary-dir-url"
state: present
- name: Remove invalid shacache certificate when: slapcache_cfg.stat.exists == True
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
- name: Prevent mei_me module from being loaded - name: Prevent mei_me module from being loaded
lineinfile: lineinfile:
......
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