install.yml 673 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. - hosts: localhost
  3. gather_facts: no
  4. connection: local
  5. become: True
  6. tasks:
  7. - name: Install packages
  8. apt: name={{ item }} update_cache=yes
  9. with_items:
  10. - python-pip
  11. - python-dev
  12. - libsmpeg0
  13. - libttspico-utils
  14. - libsmpeg0
  15. - flac
  16. - dialog
  17. - libffi-dev
  18. - portaudio19-dev
  19. - build-essential
  20. - libssl-dev
  21. - libffi-dev
  22. - sox
  23. #
  24. - name: Copy requirement
  25. copy:
  26. src: python_requirements.txt
  27. dest: /tmp/requirements.txt
  28. - name: Upgrade pip
  29. pip:
  30. name: pip
  31. state: latest
  32. - name: Install python libs
  33. pip:
  34. requirements=/tmp/requirements.txt