main.yml 578 B

12345678910111213141516171819
  1. ---
  2. - name: clone fpcentral git repo
  3. git: repo={{ fpcentral_git_url }} dest={{ fpcentral_rootdir }}/fpcentral
  4. version={{ fpcentral_git_commit }}
  5. - name: create python3 virtual env
  6. command: "python3 -mvirtualenv -p python3 {{ fpcentral_virtualenv }}"
  7. args:
  8. creates: "{{ fpcentral_virtualenv }}"
  9. - name: install required python modules
  10. command: "{{ fpcentral_virtualenv }}/bin/pip3 install -r {{ fpcentral_rootdir }}/fpcentral/requirements.txt"
  11. - template:
  12. src: fpcentral.wsgi
  13. dest: "{{ fpcentral_rootdir }}/fpcentral/fpcentral.wsgi"
  14. mode: 0755