Re: [ansible-devel] register variable with_items and failed_when

2021-02-16 Thread Andreas Härpfer
> On 16. Feb 2021, at 08:24, Mukuntha rajaa wrote: > > Hello, > > I am using custom module and looping through items to do "kubectl apply -f". > > - name: create rbac objects > kubectl: > manifest: "{{ item }}" > state: present > with_fileglob: "{{ CAAS.rbac_manifests_directory

[ansible-devel] register variable with_items and failed_when

2021-02-15 Thread Mukuntha rajaa
Hello, I am using custom module and looping through items to do "kubectl apply -f". - name: create rbac objects kubectl: manifest: "{{ item }}" state: present with_fileglob: "{{ CAAS.rbac_manifests_directory }}/*" register: rbacresult failed_when: '"v1beta1 is deprecated" not