--- - name: Deploy application on test env hosts: "{{ vm_name }}" gather_facts: false tasks: - name: Install Nodejs yum: name: npm state: present - name: Install Nodejs yum: name: git state: present - name: Git Clone / Update Pacman application ansible.builtin.git: repo: https://github.com/brusq-RH/pacman dest: /src/pacman update: no - name: Install Pacman application dependicies npm: path: /src/pacman state: present - name: Copy Pacman systemd file copy: src: files/pacman.service dest: /usr/lib/systemd/system/ - name: Restart application systemd: name: pacman state: restarted daemon_reload: yes