Add tasks to create only 1 client #11

Merged
pcaseiro merged 2 commits from f/create_1_client into master 2023-07-13 10:19:05 +02:00
Showing only changes of commit e2e36216b0 - Show all commits

View File

@ -5,6 +5,13 @@
- fail: msg='Error, client does not exist. Please define the client first'
when: hydra_clients|selectattr("client_id", "equalto", client_id)|list|length == 0
# Creating a client which already exists could create problems
- name: Check client doesn't already exists
command: podman exec -t cadoles-pod-hydra-v1 /bin/sh -c "hydra clients get {{ client_id }} --endpoint http://127.0.0.1:4445"
pcaseiro marked this conversation as resolved Outdated

Je ne trouve pas trace de ce fichier "hydra-client.json.j2"

Je ne trouve pas trace de ce fichier "hydra-client.json.j2"
register: command_result
failed_when: command_result.rc == 0
become: true
- name: Create hydra-client
template:
src: hydra-client.json.j2