- hosts: localhost tasks: - name: Ensure required namespaces exist kubernetes.core.k8s: api_version: v1 kind: Namespace name: "{{ item }}" state: present loop: - tekton-pipelines - cert-manager - external-dns - cloudflared