generate_clusterroles.yaml 317 B

1234567891011
  1. ---
  2. - name: Generate ClusterRole for cluster-reader
  3. template: src=clusterrole.j2 dest={{mktemp.stdout}}/templates/logging-10-{{obj_name}}-clusterrole.yaml
  4. vars:
  5. obj_name: rolebinding-reader
  6. rules:
  7. - resources: [clusterrolebindings]
  8. verbs:
  9. - get
  10. check_mode: no
  11. changed_when: no