--- - name: Install dependencies ansible.builtin.apt: name: virtualenv state: present - name: Clone revbank-inflatinator source ansible.builtin.git: repo: https://git.bitlair.nl/bitlair/revbank-inflatinator.git version: main dest: /opt/revbank-inflatinator accept_hostkey: yes - name: Create virtualenv ansible.builtin.command: cmd: virtualenv /opt/revbank-inflatinator/.venv args: creates: /opt/revbank-inflatinator/.venv - name: Install Python dependencies ansible.builtin.shell: cmd: . .venv/bin/activate && pip install -r requirements.txt args: chdir: /opt/revbank-inflatinator - name: Install service ansible.builtin.template: src: inflatinator.service dest: /etc/systemd/system/revbank-inflatinator.service owner: root group: root mode: 0644 notify: Daemon reload