2018-12-15 01:03:27 +01:00
|
|
|
---
|
|
|
|
|
2018-12-15 12:39:39 +01:00
|
|
|
# Just deploy a new version of the the XPPL.
|
|
|
|
# Depends on setup.yml being ran first to set things up.
|
|
|
|
|
|
|
|
- hosts: all
|
2018-12-15 01:03:27 +01:00
|
|
|
pre_tasks:
|
|
|
|
- name: Shutdown the running XPPL for the deployment.
|
|
|
|
become: true
|
|
|
|
supervisorctl:
|
|
|
|
name: 'xppl:'
|
|
|
|
state: stopped
|
|
|
|
roles:
|
|
|
|
- role: git # Clone the project source
|
|
|
|
- role: pipenv # Install Python dependencies
|
|
|
|
- role: env # Configure the application environment
|
|
|
|
- role: nginx # Setup the Nginx configuration
|
|
|
|
post_tasks:
|
|
|
|
- name: Start back up the XPPL after the deployment.
|
|
|
|
become: true
|
|
|
|
supervisorctl:
|
|
|
|
name: 'xppl:'
|
2018-12-15 12:39:39 +01:00
|
|
|
state: started
|