diff options
| author | Ralph Bean <rbean@redhat.com> | 2016-01-27 16:28:10 +0000 |
|---|---|---|
| committer | Ralph Bean <rbean@redhat.com> | 2016-01-27 16:28:10 +0000 |
| commit | f15847c448082b8f751e001480b1df5fa0f3bd6c (patch) | |
| tree | f981123ce197cffaf34fb2fb0e59d632b93149dc /playbooks | |
| parent | ab47adaddeb0efe4205e9e6c90a5c2d23c95980a (diff) | |
| download | ansible-f15847c448082b8f751e001480b1df5fa0f3bd6c.tar.gz ansible-f15847c448082b8f751e001480b1df5fa0f3bd6c.tar.xz ansible-f15847c448082b8f751e001480b1df5fa0f3bd6c.zip | |
Some fixes to the pdc upgrade playbook.
Diffstat (limited to 'playbooks')
| -rw-r--r-- | playbooks/manual/upgrade/pdc.yml | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/playbooks/manual/upgrade/pdc.yml b/playbooks/manual/upgrade/pdc.yml index d9ae5844e..496f3ab06 100644 --- a/playbooks/manual/upgrade/pdc.yml +++ b/playbooks/manual/upgrade/pdc.yml @@ -1,27 +1,22 @@ -- name: push packages out - hosts: pdc-backend;pdc-backend-stg;pdc-web;pdc-web-stg +- name: verify the backend, and stop it + hosts: pdc-backend;pdc-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 + handlers: + - include: "{{ handlers }}/restart_services.yml" - tasks: + pre_tasks: - name: clean all metadata command: yum clean all always_run: yes - name: yum update PDC packages - yum: name="pdc-*" state=latest - -- name: verify the backend, and stop it - hosts: pdc-backend;pdc-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 - handlers: - - include: "{{ handlers }}/restart_services.yml" + yum: name="{{item}}" state=latest + with_items: + - pdc-client + - pdc-updater roles: - pdc/backend @@ -44,6 +39,15 @@ handlers: - include: "{{ handlers }}/restart_services.yml" + pre_tasks: + - name: clean all metadata + command: yum clean all + always_run: yes + - name: yum update PDC packages + yum: name="{{item}}" state=latest + with_items: + - python-pdc + roles: - pdc/frontend @@ -57,7 +61,7 @@ command: python /usr/lib/python2.7/site-packages/pdc/manage.py syncdb --noinput args: chdir: /usr/lib/python2.7/site-packages/pdc/ - when: inventory_shortname == 'pdc-web01' + when: inventory_hostname_short == 'pdc-web01' - service: name="httpd" state=started - name: tell nagios to unshush w.r.t. the frontend nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }} |
