From 4065e788c2033b5fd0354f86cc78f6fdab1fe46d Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Mon, 9 Oct 2017 18:40:14 +0000 Subject: [PATCH] autocloud: Update python2-fedfind along with other autcloud pkgs Signed-off-by: Sayan Chowdhury --- playbooks/manual/upgrade/autocloud.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/playbooks/manual/upgrade/autocloud.yml b/playbooks/manual/upgrade/autocloud.yml index 497bf75419..9bc58d79e7 100644 --- a/playbooks/manual/upgrade/autocloud.yml +++ b/playbooks/manual/upgrade/autocloud.yml @@ -61,10 +61,30 @@ dnf: name="fedfind" state=latest enablerepo=infrastructure-tags-stg when: testing +- name: update python2-fedfind + hosts: autocloud-backend:autocloud-backend-stg + user: root + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + vars: + testing: False + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + + tasks: + - name: dnf update fedfind packages from main repo + dnf: name="python2-fedfind" state=latest + when: not testing + - name: dnf update fedfind packages from testing repo + dnf: name="python2-fedfind" state=latest enablerepo=infrastructure-tags-stg + when: testing + - name: verify the frontend and stop it hosts: autocloud-web:autocloud-web-stg user: root - vars_files: + vars_files: - /srv/web/infra/ansible/vars/global.yml - "/srv/private/ansible/vars.yml" - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml