Add encryption role and related files

This commit is contained in:
2024-09-29 16:11:31 +02:00
parent a03aca39df
commit 9ae5a6446b
24 changed files with 299 additions and 332 deletions
+22
View File
@@ -0,0 +1,22 @@
---
- name: Install cryptsetup and curl
become: true
ansible.builtin.apt:
name:
- cryptsetup
- curl
state: present
when: ansible_os_family == 'Debian'
- name: Create folder to store volume
become: true
ansible.builtin.file:
path: "{{ encryption_volumes_path }}"
state: directory
mode: "0750"
- name: Create encrypted volumes
ansible.builtin.include_tasks: volume.yml
loop: "{{ encryption_volumes }}"
loop_control:
loop_var: item