From 793582e621791586ff255d37d040eb1d21ab8e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Gourv=C3=A9nec?= Date: Thu, 9 Nov 2023 09:10:15 +0100 Subject: [PATCH] Adding a task to update hydra-remote-user only --- tasks/update-hydra-remote-user.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tasks/update-hydra-remote-user.yml diff --git a/tasks/update-hydra-remote-user.yml b/tasks/update-hydra-remote-user.yml new file mode 100644 index 0000000..6959dd4 --- /dev/null +++ b/tasks/update-hydra-remote-user.yml @@ -0,0 +1,33 @@ +--- +# Simple task to update the package/container cadoles-pod-hydra-remote-user only. +- name: Install hydra-remote-user package + ansible.builtin.apt: + name: + - cadoles-pod-hydra-remote-user-v1={{ cadoles_pod_hydra_remote_user_v1_package_version }} + update_cache: yes + state: present + become: true + +- name: Configure cadoles-pod-hydra-remote-user-v1 + template: + src: "{{ item.src }}" + dest: "{{ item.dest }}" + mode: "{{ item.mode }}" + with_items: + - src: cadoles-pod-hydra-remote-user-v1.conf.j2 + dest: /etc/cadoles-pod-hydra-remote-user-v1.conf + mode: u=rw,g=r + - src: hydra-remote-user.yml.j2 + dest: /etc/hydra-remote-user/conf.d/remote-user.yml + mode: u=rw,g=r,o=r + notify: + - Restart cadoles-pod-hydra-remote-user-v1 + become: true + +- name: Configure cadoles-pod-hydra-remote-user-v1 (2) + ansible.builtin.copy: + src: hydra-remote-user-v1-apache.conf + dest: /etc/hydra-remote-user/apache.conf + notify: + - Restart cadoles-pod-hydra-remote-user-v1 + become: true