---
# This playbook installs the bespoke plugins required for the site and ensures
# CKAN's configuration is correct.

- name: install packages for repos
  apt: pkg={{ item }} state=installed
  with_items:
    - git
    - libxml2
    - libxml2-dev
    - libxslt1.1
    - libxslt1-dev
    - openssl
    - libssl-dev
    - swig
    - python-dev

- name: clone ckanext-nhsengland git repository
  become: true
  become_user: ubuntu
  git:
    repo: "{{ git_protocol }}{{ git_repos_nhse }}"
    dest: /home/ubuntu/ckanext-nhsengland
    version: reskin-nhs-england

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

---
# This playbook installs the bespoke plugins required for the site and ensures
# CKAN's configuration is correct.

- name: install packages for repos
  apt: pkg={{ item }} state=installed
  with_items:
    - git
    - libxml2
    - libxml2-dev
    - libxslt1.1
    - libxslt1-dev
    - openssl
    - libssl-dev
    - swig
    - python-dev

- name: clone ckanext-nhsengland git repository
  become: true
  become_user: ubuntu
  git:
    repo: "{{ git_protocol }}{{ git_repos_nhse }}"
    dest: /home/ubuntu/ckanext-nhsengland
    version: upgrade-ckan

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

Switch to current latest plugin branch
Switch to current latest plugin branch
