---
- name: Ensure encryption configuration is applied
  hosts: seed-hypervisor:seed:overcloud:infra-vms
  max_fail_percentage: >-
    {{ luks_max_fail_percentage |
       default(host_configure_max_fail_percentage) |
       default(kayobe_max_fail_percentage) |
       default(100) }}
  tags:
    - luks
  tasks:
    - name: Setup LUKS disk encryption
      vars:
        luks_action: setup
      include_role:
        name: stackhpc.luks
      when:
        - luks_devices is defined
        - luks_devices | length > 0
