crypttab – Encrypted Linux block devices¶
Synopsis¶
- Control Linux encrypted block devices that are set up during system boot in /etc/crypttab.
Parameters¶
Examples¶
- name: Set the options explicitly a device which must already exist
  crypttab:
    name: luks-home
    state: present
    opts: discard,cipher=aes-cbc-essiv:sha256
- name: Add the 'discard' option to any existing options for all devices
  crypttab:
    name: '{{ item.device }}'
    state: opts_present
    opts: discard
  loop: '{{ ansible_mounts }}'
  when: "'/dev/mapper/luks-' in {{ item.device }}"
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Steve (@groks)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
