diff --git a/ansible/roles/archiveweb-k8s/tasks/nginx.yml b/ansible/roles/archiveweb-k8s/tasks/nginx.yml index 262bcc1..829cc3f 100644 --- a/ansible/roles/archiveweb-k8s/tasks/nginx.yml +++ b/ansible/roles/archiveweb-k8s/tasks/nginx.yml @@ -101,11 +101,11 @@ - name: Restart Archive Web when: >- - ('web.restart' in ansible_run_tags) + ('nginx.restart' in ansible_run_tags) or ( (_archiveweb_configmap | default({})) is changed ) - local_action: - module: ansible.builtin.shell + delegate_to: localhost + ansible.builtin.shell: cmd: "oc patch deployment/{{ app_name }} --namespace {{ openshift_namespace }} --patch '{ \"spec\": { @@ -118,4 +118,4 @@ } } }'" - tags: web.restart + tags: nginx.restart