rantanran

playbook djangocms setup

Jun 5th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.69 KB | None | 0 0
  1. - name: Setup Virtualenv
  2.   pip:
  3.     virtualenv: "{{ virtualenv_path }}"
  4.     requirements: "{{ virtualenv_path }}/requirements.txt"
  5.     # virtualenv_python: python3
  6.     # virtualenv_command: virtualenv
  7.   become: true
  8.  
  9.  
  10. - name: Create project directory for djangocms website
  11.   file:
  12.     path: "{{ virtualenv_path}}/{{ project_name}}"
  13.     state: directory
  14.  
  15. - name: Install djangocms
  16.   shell: "{{ virtualenv_path }}/bin/djangocms -f -p {{ virtualenv_path}}/{{ project_name}} mysite"
  17.   args:
  18.     chdir: "{{ virtualenv_path}}/{{ project_name}}"
  19.  
  20. - name: Start webservice
  21.   command: "{{virtualenv_path }}/bin/python {{virtualenv_path }}/{{ project_name}}/manage.py runserver 0.0.0.0:8080 "
Advertisement
Add Comment
Please, Sign In to add comment