Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. - name: 指定バージョンのPythonをインストールする
  2. shell: bash -lc "pyenv install {{ python_version }}"
  3. become: false
  4.  
  5. - name: 作業用ディレクトリに指定バージョンを反映する
  6. shell: bash -lc "pyenv local {{ python_version }}"
  7. args:
  8. chdir: "{{ work_dir }}"
  9. become: false
  10.  
  11. - name: pipアップグレード
  12. shell: bash -lc "pip install --upgrade pip"
  13. args:
  14. chdir: "{{ work_dir }}"
  15. become: false
  16.  
  17. - name: install django
  18. pip:
  19. name: django
  20. chdir: "{{ work_dir }}"
  21. version: "{{ django_version }}"
  22. executable: pip
  23. become: false
  24.  
  25. TASK [django : install django] *************************************************
  26. fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to find any of pip to use. pip needs to be installed."}
  27. to retry, use: --limit @/vagrant/playbooks/main.retry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement