---
- name: Create a k8s LimitRange
  community.okd.k8s:
    api_key: "{{ communishift_ocp_api_token }}"
    host: "{{ communishift_ocp_api_host }}"
    state: present
    definition:
      apiVersion: v1
      kind: LimitRange
      metadata:
        name: "{{ communishift_project_name }}-limitrange"
        namespace: "{{ communishift_project_name }}"
      spec:
        limits:
          - default:
              cpu: 500m
              memory: 500Mi
            defaultRequest:
              cpu: 100m
              memory: 100Mi
            type: Container
