Last active
August 29, 2015 13:55
-
-
Save mxey/8717021 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: website | |
vars: | |
version: 0.4.1 | |
root: /opt/ghost | |
temp_zip_file: /opt/ghost-new.zip | |
tasks: | |
- name: fetch | |
get_url: "dest={{temp_zip_file}} url=https://ghost.org/zip/ghost-{{version}}.zip" | |
- name: remove old core | |
file: "path={{root}}/core state=absent" | |
- name: unzip | |
command: "unzip {{temp_zip_file}} -od {{root}}" | |
- name: install npm dependencies | |
npm: "path={{root}} production=yes" | |
- name: restart service | |
service: name=ghost state=restarted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment