Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Setup Virtualenv
- pip:
- virtualenv: "{{ virtualenv_path }}"
- requirements: "{{ virtualenv_path }}/requirements.txt"
- # virtualenv_python: python3
- # virtualenv_command: virtualenv
- become: true
- - name: Create project directory for djangocms website
- file:
- path: "{{ virtualenv_path}}/{{ project_name}}"
- state: directory
- - name: Install djangocms
- shell: "{{ virtualenv_path }}/bin/djangocms -f -p {{ virtualenv_path}}/{{ project_name}} mysite"
- args:
- chdir: "{{ virtualenv_path}}/{{ project_name}}"
- - name: Start webservice
- 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