generate_rolebindings.yaml 346 B

123456789101112
  1. ---
  2. - name: Generate RoleBindings
  3. template: src=rolebinding.j2 dest={{mktemp.stdout}}/templates/logging-{{obj_name}}-rolebinding.yaml
  4. vars:
  5. obj_name: logging-elasticsearch-view-role
  6. roleRef:
  7. name: view
  8. subjects:
  9. - kind: ServiceAccount
  10. name: aggregated-logging-elasticsearch
  11. check_mode: no
  12. changed_when: no