diff --git a/tasks/update_phab.yml b/tasks/update_phab.yml index 8019f57..7ac991e 100644 --- a/tasks/update_phab.yml +++ b/tasks/update_phab.yml @@ -1,66 +1,66 @@ --- - name: Update phabricator on app instances hosts: app, phd user: centos sudo: yes vars_files: - "{{ var }}" tasks: - name: Stash modification shell: "cd {{ phabricator_path }}libphutil; git stash" - name: Clone phacility/libphutil git: repo: https://github.com/phacility/libphutil dest: "{{ phabricator_path }}libphutil" version: stable update: true sudo_user: "{{ phd_user }}" - name: Stash apply modification shell: "cd {{ phabricator_path }}libphutil; git stash apply; true" - name: Stash modification shell: "cd {{ phabricator_path }}arcanist; git stash" - name: Clone phacility/arcanist git: repo: https://github.com/phacility/arcanist.git dest: "{{ phabricator_path }}arcanist" version: stable update: true sudo_user: "{{ phd_user }}" - name: Stash apply modification shell: "cd {{ phabricator_path }}arcanist; git stash apply; true" - name: Stash modification shell: "cd {{ phabricator_path }}phabricator; git stash" - name: Clone phacility/phabricator git: repo: https://github.com/phacility/phabricator.git dest: "{{ phabricator_path }}phabricator" version: stable update: true sudo_user: "{{ phd_user }}" - name: Stash apply modification shell: "cd {{ phabricator_path }}phabricator; git stash apply; true" - name: Migrate the database command: chdir={{ phabricator_path }}phabricator ./bin/storage upgrade --force sudo_user: "{{ phd_user }}" when: "'{{ inventory_hostname }}' == '{{ groups.app[0] }}'" - name: Restart httpd daemons - hosts: phd + hosts: app user: centos sudo: yes vars_files: - "{{ var }}" tasks: - service: name=httpd state=restarted - name: Restart phd daemons hosts: phd user: centos sudo: yes vars_files: - "{{ var }}" tasks: - service: name=phd state=restarted