--- - name: install required packages for st become: yes apt: update_cache: yes pkg: - git - make - name: create src dir file: path: ~/src - name: checkout st git: repo: "{{ st.repo }}" dest: "{{ ansible_user_dir }}/src/stterm" clone: yes update: yes - name: build st make: chdir: "{{ ansible_user_dir }}/src/stterm" - name: install st become: yes register: make make: chdir: "{{ ansible_user_dir }}/src/stterm" target: install - name: debug debug: msg="{{ make.stdout }}"