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
......@@ -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
when: systemd_version.stdout | int > 228
- stat: path=/etc/opt/slapos/slapos.cfg
register: slapos_cfg
- stat: path=/etc/opt/slapcache.cfg
register: slapcache_cfg
- name: Remove invalid shacache certificate title
- name: Add missing download-dir-url entry in slapcache.cfg
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
dest: /etc/opt/slapcache.cfg
regexp: "^download-dir-url"
line: "download-dir-url = http://shadir.nxdcdn.com"
insertafter: "^download-binary-dir-url"
state: present
when: slapcache_cfg.stat.exists == True
- name: Prevent mei_me module from being loaded
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