Skip to content

Commit

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

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

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

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

0 comments on commit cdca4b2

Please sign in to comment.