From 7c745e2cf9845dd731e09164f4bd0e418ad8d7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Gourv=C3=A9nec?= Date: Mon, 7 Aug 2023 18:02:59 +0200 Subject: [PATCH] Adding a task to update hydra-dispatcher only We may want to restart this service only. --- tasks/update-hydra-dispatcher.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tasks/update-hydra-dispatcher.yml diff --git a/tasks/update-hydra-dispatcher.yml b/tasks/update-hydra-dispatcher.yml new file mode 100644 index 0000000..fbfe5b6 --- /dev/null +++ b/tasks/update-hydra-dispatcher.yml @@ -0,0 +1,25 @@ +--- +# Simple task to update the package/container cadoles-pod-hydra-dispatcher only. +- name: Install hydra-dispatcher package + ansible.builtin.apt: + name: + - cadoles-pod-hydra-dispatcher-v1={{ cadoles_pod_hydra_dispatcher_v1_package_version }} + update_cache: yes + state: present + become: true + +- name: Configure cadoles-pod-hydra-dispatcher-v1 + template: + src: "{{ item.src }}" + dest: "{{ item.dest }}" + mode: "{{ item.mode }}" + with_items: + - src: cadoles-pod-hydra-dispatcher-v1.conf.j2 + dest: /etc/cadoles-pod-hydra-dispatcher-v1.conf + mode: u=rw,g=r + - src: hydra-dispatcher-apps.yml.j2 + dest: /etc/hydra-dispatcher/conf.d/apps.yml + mode: u=rw,g=r,o=r + notify: + - Restart cadoles-pod-hydra-dispatcher-v1 + become: true