---
- name: Configure swap
  hosts: seed-hypervisor:seed:overcloud:infra-vms
  become: true
  max_fail_percentage: >-
    {{ swap_max_fail_percentage |
       default(host_configure_max_fail_percentage) |
       default(kayobe_max_fail_percentage) |
       default(100) }}
  tags:
    - swap
  tasks:
    - name: Include swap role
      include_role:
        name: swap
      when: swap | length > 0
