emcstack.encrypt-luks
Encrypt-LUKs
Encrypt disks using LUKs
Requirements
Role Variables
Name | Type | Required | Default | Description |
---|---|---|---|---|
hdds | list | yes | None | List of disks or partitions to encrypt (they must already exist) |
encrypt_key_size | int | no | 512 | Number of bits for the encryption key |
encrypt_key_folder | string | no | /var/tmp | Default folder to save the encryption key |
key_file | string | no | luk-keyfile | Default name for the encryption key file |
use_same_encrypt_key | boolean | no | true | Set to true to use the same key for all disks |
Dependencies
Example Playbook
- hosts:
- nc-9
roles:
- encrypt-luks
vars:
- hdds:
- /dev/sdb
- /dev/sdc1
- hosts:
- nc-9
roles:
- encrypt-luks
vars:
- encrypt_key_size: 2048
- hdds:
- /dev/sdb
- /dev/sdc1
License
GPLv3
Author Information
John Preston [John Mille]