mirror of
https://gitea.0xace.cc/ansible-galaxy/luks.git
synced 2024-11-24 23:36:41 +00:00
26 lines
1.1 KiB
YAML
26 lines
1.1 KiB
YAML
|
- name: Install cryptsetup
|
||
|
package:
|
||
|
name: cryptsetup
|
||
|
state: present
|
||
|
|
||
|
- name: Open the LUKS container
|
||
|
community.crypto.luks_device:
|
||
|
device: "{{ item.device | default(omit) }}"
|
||
|
label: "{{ item.label | default(omit) }}"
|
||
|
uuid: "{{ item.uuid | default(omit) }}"
|
||
|
name: "{{ item.name | default(omit) }}"
|
||
|
state: "{{ item.state | default(luks_state) }}"
|
||
|
type: "{{ item.type | default(luks_type) }}"
|
||
|
keyfile: "{{ item.keyfile | default(omit) }}"
|
||
|
passphrase: "{{ item.passphrase | default(omit) }}"
|
||
|
persistent: "{{ item.persistent | default(omit) }}"
|
||
|
perf_no_read_workqueue: "{{ item.perf_no_read_workqueue | default(omit) }}"
|
||
|
perf_no_write_workqueue: "{{ item.perf_no_write_workqueue | default(omit) }}"
|
||
|
perf_same_cpu_crypt: "{{ item.perf_same_cpu_crypt | default(omit) }}"
|
||
|
perf_submit_from_crypt_cpus: "{{ item.perf_submit_from_crypt_cpus | default(omit) }}"
|
||
|
allow_discards: "{{ item.allow_discards | default(omit) }}"
|
||
|
sector_size: "{{ item.sector_size | default(omit) }}"
|
||
|
loop: "{{ luks_devices }}"
|
||
|
no_log: true
|
||
|
when: luks_devices is defined
|