main.yml 672 B

12345678910111213141516171819202122
  1. ----
  2. # Creates all ING-related ClusterRoles in the target cluster.
  3. # Ensures that corresponding OpenShift groups exist.
  4. - name: Make sure the cluster roles are there
  5. kubernetes.core.k8s:
  6. kubeconfig: tmp/kubeconfig-ocp4
  7. validate_certs: no
  8. api_version: rbac.authorization.k8s.io/v1
  9. kind: clusterrole
  10. name: "{{ item }}"
  11. src: "files/{{ item }}.yaml"
  12. loop: "{{ create_cluster_roles }}"
  13. - name: Ensure that corresponding cluster groups also exist
  14. kubernetes.core.k8s:
  15. kubeconfig: tmp/kubeconfig-ocp4
  16. validate_certs: no
  17. api_version: user.openshift.io/v1
  18. kind: group
  19. name: "{{ item }}s"
  20. loop: "{{ create_cluster_roles }}"
  21. ....