2023-08-07 18:02:59 +02:00
|
|
|
---
|
|
|
|
# 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
|
2024-07-12 16:51:29 +02:00
|
|
|
|
|
|
|
- name: Configure cadoles-pod-hydra-dispatcher-v1 (2)
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
with_items:
|
|
|
|
- src: www.conf.gotmpl
|
|
|
|
dest: /etc/hydra-dispatcher/www.conf.gotmpl
|
|
|
|
notify:
|
|
|
|
- Restart cadoles-pod-hydra-dispatcher-v1
|
|
|
|
become: true
|