From 9d3b442c273b6e44a48bb46546714d44aeca4e3f Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 30 Sep 2015 18:54:13 +0000 Subject: [PATCH] Only upgrade tunir on the backend. --- playbooks/manual/upgrade/autocloud.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/playbooks/manual/upgrade/autocloud.yml b/playbooks/manual/upgrade/autocloud.yml index e4bf7ef545..8705f05244 100644 --- a/playbooks/manual/upgrade/autocloud.yml +++ b/playbooks/manual/upgrade/autocloud.yml @@ -20,11 +20,25 @@ - name: dnf update autocloud packages from testing repo dnf: name="autocloud*" state=latest enablerepo=infrastructure-testing when: testing + +- name: update tunir + 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 }}/restart_services.yml" + + tasks: - name: dnf update tunir packages from main repo - dnf: name="tunir*" state=latest + dnf: name="tunir" state=latest when: not testing - name: dnf update tunir packages from testing repo - dnf: name="tunir*" state=latest enablerepo=infrastructure-testing + dnf: name="tunir" state=latest enablerepo=infrastructure-testing when: testing - name: verify the frontend and stop it