From 35ef38766967bbd7cbb5e45462c5531e0ed1e3bc Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 10 May 2021 13:49:38 +0200 Subject: [PATCH] FMN: pull the python3 packages for notifs-web02 Signed-off-by: Pierre-Yves Chibon --- roles/notifs/frontend/tasks/main.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/roles/notifs/frontend/tasks/main.yml b/roles/notifs/frontend/tasks/main.yml index ec1bbffb5d..6ced2d31b1 100644 --- a/roles/notifs/frontend/tasks/main.yml +++ b/roles/notifs/frontend/tasks/main.yml @@ -1,6 +1,5 @@ --- # Configuration for the Fedora Notifications webapp - - name: install needed packages package: name={{ item }} state=present with_items: @@ -8,9 +7,26 @@ - python-psycopg2 - libsemanage-python - python-memcached + - python-flask-openid - python-bunch notify: - restart apache + when: + inventory_hostname.startswith('notifs-backend01') + tags: + - notifs + - notifs/frontend + +- name: install needed packages + package: name={{ item }} state=present + with_items: + - python3-fmn + - python3-psycopg2 + - python3-libsemanage + - python3-memcached + - python3-flask-openid + notify: + - restart apache tags: - notifs - notifs/frontend @@ -26,16 +42,6 @@ - notifs - notifs/frontend -- name: install packages needed from epel testing - package: name={{ item }} state=present enablerepo=epel-testing - with_items: - - python-flask-openid - notify: - - restart apache - tags: - - notifs - - notifs/frontend - - name: copy fmn app configuration template: > src={{ item }} dest=/etc/fedmsg.d/{{ item }}