Commit f893455c authored by Łukasz Nowak's avatar Łukasz Nowak

playbook: Sekeltonize rapid.space-vps-brute-capri playbook

Additional role rapid-space-vps-base is added for furhter extensions.

Unfortunately a lot of various approaches is needed:

 * ini_file for oneline manipulation
 * blockinfile for adding a section
 * lineinfile for uncommenting

Note: it was discovered, that some specific parts are just missing in
vifib-server, so add them there.
parent 609d9f53
- name: Playbook to configure Rapid.Space VPS Brute on Capri server
hosts: 127.0.0.1
connection: local
roles:
- rapid-space-vps-base
- rapid-space-vps-brute-capri
---
- name: "Setup manager_list"
ini_file:
dest: /etc/opt/slapos/slapos.cfg
create: no
section: slapos
option: manager_list
value: devperm,prerm
- name: "Setup download-from-binary-cache-force-url-list (1/3): key"
lineinfile:
path: /etc/opt/slapos/slapos.cfg
state: present
backrefs: yes
regexp: '^#(download-from-binary-cache-force-url-list.*)'
line: '\1'
- name: "Setup download-from-binary-cache-force-url-list (2/3): entry"
lineinfile:
path: /etc/opt/slapos/slapos.cfg
state: present
backrefs: yes
regexp: '^#( https://lab.nexedi.com/nexedi/slapos/raw/1.0.)'
line: '\1'
- name: "Setup download-from-binary-cache-force-url-list (3/3): entry"
lineinfile:
path: /etc/opt/slapos/slapos.cfg
state: present
backrefs: yes
regexp: '^#( https://lab.node.vifib.com/nexedi/slapos/raw/1.0.)'
line: '\1'
---
# Block setup, at least our version does not support multiline ini_file
- name: Setup [manager:devperm]
blockinfile:
path: /etc/opt/slapos/slapos.cfg
block: |
[manager:devperm]
allowed-disk-for-vm =
/dev/nvme0n1
/dev/nvme1n1
/dev/nvme2n1
/dev/nvme3n1
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