--- - name: install sygnal with pip into virtualenv block: - name: Install dependencies apt: name: - build-essential - python-dev - python-pip - python-setuptools - libssl-dev - python-virtualenv - git state: present cache_valid_time: 1800 - name: Create virtualenv pip: name: - pip - setuptools virtualenv: "{{ sygnal_base_path }}/env" virtualenv_python: python2 extra_args: --upgrade - name: Clone sygnal git: repo: https://github.com/matrix-org/sygnal dest: "{{ sygnal_base_path }}/sygnal" accept_hostkey: yes version: "master" register: clone_sygnal - name: Install sygnal pip: name: "{{ sygnal_base_path }}/sygnal" virtualenv: "{{ sygnal_base_path }}/env" virtualenv_python: python2 when: clone_sygnal.changed notify: restart sygnal when: sygnal_deployment_method == "pip" - name: install sygnal with docker docker_container: name: sygnal image: "" # TODO: dockerize sygnal ports: "{{ sygnal_docker_ports }}" labels: "{{ sygnal_docker_labels }}" restart_policy: unless-stopped recreate: true pull: true user: "{{ sygnal_user.uid }}:{{ sygnal_user.group }}" volumes: - "{{ sygnal_base_path }}/sygnal.conf:{{ sygnal_base_path }}/sygnal.conf" - "{{ sygnal_base_path }}/log:{{ sygnal_base_path }}/log" when: sygnal_deployment_method == "docker"