12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- ---
- - hosts: localhost
- gather_facts: no
- connection: local
- vars:
- - git_url: "git@github.com:kalliope-project/kalliope.git"
- - temp_local_repo: "/tmp/kalliope_repo"
- tasks:
- - name: clone project in /tmp as standart user
- git:
- repo: "{{ git_url }}"
- dest: /tmp/kalliope_repo
- accept_hostkey: yes
- - hosts: localhost
- gather_facts: no
- connection: local
- become: True
- vars:
- - git_url: "git@github.com:kalliope-project/kalliope.git"
- - temp_local_repo: "/tmp/kalliope_repo"
- - install_path: "/usr/lib/kalliope"
- tasks:
- - name: Install packages
- apt: name={{ item }} update_cache=yes
- with_items:
- - python-pip
- - python-dev
- - libsmpeg0
- - libttspico-utils
- - libsmpeg0
- - flac
- - dialog
- - libffi-dev
- - portaudio19-dev
- - build-essential
- - libssl-dev
- - libffi-dev
- - sox
- - libatlas3-base
- - mplayer
- - name: Copy requirement
- copy:
- src: python_requirements.txt
- dest: /tmp/requirements.txt
- - name: Upgrade pip
- pip:
- name: pip
- state: latest
- - name: Install python libs
- pip:
- requirements=/tmp/requirements.txt
|