Files
a13labs.infra/ansible/roles/encryption/tasks/main.yml
T

23 lines
483 B
YAML

---
- 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