This commit is contained in:
parent
e43d6d1da3
commit
c337d935f5
@ -1,7 +1,6 @@
|
||||
---
|
||||
# tasks file for supysonic
|
||||
|
||||
|
||||
- name: select specific Database tasks
|
||||
include_tasks: "database_{{supysonic_DB_type}}.yml"
|
||||
|
||||
@ -27,7 +26,6 @@
|
||||
state: directory # not required. choices: absent;directory;file;hard;link;touch. If C(directory), all intermediate subdirectories will be created if they do not exist. Since Ansible 1.7 they will be created with the supplied permissions. If C(file), the file will NOT be created if it does not exist; see the C(touch) value or the M(copy) or M(template) module if you want that behavior. If C(link), the symbolic link will be created or changed. Use C(hard) for hardlinks. If C(absent), directories will be recursively deleted, and files or symlinks will be unlinked. Note that C(absent) will not cause C(file) to fail if the C(path) does not exist as the state did not change. If C(touch) (new in 1.4), an empty file will be created if the C(path) does not exist, while an existing file or directory will receive updated file access and modification times (similar to the way `touch` works from the command line).
|
||||
become: yes
|
||||
|
||||
|
||||
- name: ensure venv folder exist
|
||||
file:
|
||||
name: "{{venv_location}}"
|
||||
@ -35,12 +33,12 @@
|
||||
mode: 0777
|
||||
become: yes
|
||||
|
||||
|
||||
- name: create venv
|
||||
pip:
|
||||
name: "file://{{source_location}}/{{supysonic_name}}"
|
||||
virtualenv: "{{venv_location}}{{supysonic_venv_name}}"
|
||||
virtualenv_command: /usr/bin/python -m venv
|
||||
become: yes
|
||||
|
||||
- name: install sql client
|
||||
pip:
|
||||
@ -48,7 +46,7 @@
|
||||
name:
|
||||
- pymysql
|
||||
- psycopg2
|
||||
|
||||
become: yes
|
||||
- name: apply config template
|
||||
template:
|
||||
dest: "/etc/supysonic" # required. Location to render the template to on the remote machine.
|
||||
@ -59,11 +57,11 @@
|
||||
- restart daemon service
|
||||
|
||||
- name: install gunicorn
|
||||
become: yes
|
||||
pip:
|
||||
virtualenv: "{{venv_location}}{{supysonic_venv_name}}" # not required. An optional path to a I(virtualenv) directory to install into. It cannot be specified together with the 'executable' parameter (added in 2.1). If the virtualenv does not exist, it will be created before installing packages. The optional virtualenv_site_packages, virtualenv_command, and virtualenv_python options affect the creation of the virtualenv.
|
||||
name: gunicorn # not required. The name of a Python library to install or the url(bzr+,hg+,git+,svn+) of the remote package.,This can be a list (since 2.2) and contain version specifiers (since 2.7).
|
||||
|
||||
|
||||
- name: apply systemd service template
|
||||
template:
|
||||
dest: "/etc/systemd/system/gunicorn-{{supysonic_name}}.service" # required. Location to render the template to on the remote machine.
|
||||
|
Loading…
Reference in New Issue
Block a user