- name: update Plugin
  hosts: webservers
  sudo: yes
  user: ubuntu
  gather_facts: false
  tasks:
    - name: Update Git repo
      git: repo={{ git_protocol }}{{ git_user }}:{{ git_password }}@{{ git_repos}} dest=/home/ubuntu/ckanext-nhsengland update=yes
      notify:
        - Restart Apache

    - name: run setup.py for the plugin
      command: /usr/lib/ckan/default/bin/python setup.py develop chdir=/home/ubuntu/ckanext-nhsengland

  handlers:
    - name: Restart Apache
      service: name=apache2 state=restarted

Deploy an update to our NHSE Ckan extension
Deploy an update to our NHSE Ckan extension
