ansible-role-k8s-weave/tasks/main.yml

29 lines
605 B
YAML

- debug: var=my_context
tags: prom
- name: Weave setup
block:
- name: namespace
k8s:
context: "{{ my_context }}"
state: present
name: weave
api_version: v1
kind: Namespace
- name: Weave Scope files
k8s:
state: present
context: "{{ my_context }}"
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- scope-clusterrolebinding.yaml.j2
- scope-clusterrole.yaml.j2
- scope-sa.yaml.j2
- scope-svc.yaml.j2
- scope-ds.yaml.j2
- scope.yaml.j2
- weave_ingress.yaml.j2
tags: weave