From aa6a0c707171d5d363d20862f9a21d8766e506d1 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 16 Nov 2017 13:36:17 -0800 Subject: [PATCH] wikitcms: ensure openidc-client is available for token auth Signed-off-by: Adam Williamson --- roles/openqa/dispatcher/tasks/main.yml | 9 ++++++++- roles/relvalconsumer/tasks/main.yml | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/roles/openqa/dispatcher/tasks/main.yml b/roles/openqa/dispatcher/tasks/main.yml index 430fa4caa3..205f529c53 100644 --- a/roles/openqa/dispatcher/tasks/main.yml +++ b/roles/openqa/dispatcher/tasks/main.yml @@ -46,7 +46,6 @@ with_items: - python2-fedfind - python2-wikitcms - tags: - packages @@ -63,6 +62,14 @@ tags: - packages +- name: Install required packages (wiki oidc auth) + dnf: name={{ item }} state=present enablerepo="updates-testing" + with_items: + - python2-openidc-client + when: "wikitcms_token is defined" + tags: + - packages + - name: Check tools directory exists with correct ownership file: path=/root/fedora_openqa state=directory owner=root group=root diff --git a/roles/relvalconsumer/tasks/main.yml b/roles/relvalconsumer/tasks/main.yml index dad47017f8..84b9023a71 100644 --- a/roles/relvalconsumer/tasks/main.yml +++ b/roles/relvalconsumer/tasks/main.yml @@ -33,6 +33,14 @@ tags: - packages +- name: Install required packages (wiki oidc auth) + dnf: name={{ item }} state=present enablerepo="updates-testing" + with_items: + - python2-openidc-client + when: "wikitcms_token is defined" + tags: + - packages + # next two duplicated with openqa/dispatcher, but I kinda don't want to # move them up somewhere shared, I like the roles to be somewhat usable # outside of Fedora infra...