2
- shell: mkdir -p {{ int_data }}
3
- name: Upload key material for integration tests
4
copy: src=/var/data/sks-dump/{{ data_file }} dest={{ int_data }}/{{ data_file }} mode=644
5
- name: Stop Hockeypuck
6
service: name=hockeypuck state=stopped
7
- name: Drop database constraints
8
shell: su - hockeypuck -c 'hockeypuck db --config /etc/hockeypuck/hockeypuck.conf --drop-constraints'
9
- name: Load dump files
10
shell: su - hockeypuck -c 'hockeypuck load --config /etc/hockeypuck/hockeypuck.conf --path {{int_data}}/*.pgp'
11
- name: Rebuild database constraints
12
shell: su - hockeypuck -c 'hockeypuck db --config /etc/hockeypuck/hockeypuck.conf --dedup --create-constraints'
13
- name: Start Hockeypuck
14
service: name=hockeypuck state=started