Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrikallab committed Feb 4, 2025
1 parent b9376ff commit a87d407
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ansible/roles/shd-client-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: svc.yml.j2
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- service

Expand All @@ -14,8 +13,7 @@
namespace: "{{ NAMESPACE }}"
template: configmap.yml.j2
apply: yes
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- configmap

Expand All @@ -24,8 +22,7 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: deployment.yml.j2
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- deployment

Expand All @@ -34,7 +31,6 @@
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: ingress.yml.j2
state: absent
when: WITH_SHD_CLIENT is not defined or not WITH_SHD_CLIENT | bool
state: "{{ 'present' if WITH_SHD_CLIENT else 'absent'}}"
tags:
- ingress

0 comments on commit a87d407

Please sign in to comment.