2020-07-01 13:49:46 +00:00
|
|
|
---
|
2020-07-02 10:04:22 +00:00
|
|
|
- name: install required packages for st
|
2020-07-01 13:49:46 +00:00
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
pkg:
|
|
|
|
- git
|
|
|
|
- make
|
|
|
|
|
2020-07-02 10:04:22 +00:00
|
|
|
- name: create src dir
|
|
|
|
file:
|
|
|
|
path: ~/src
|
|
|
|
|
|
|
|
- name: checkout st
|
|
|
|
git:
|
|
|
|
repo: "{{ st.repo }}"
|
|
|
|
dest: "{{ ansible_user_dir }}/src/stterm"
|
|
|
|
clone: yes
|
|
|
|
update: yes
|
|
|
|
|
2020-07-01 13:49:46 +00:00
|
|
|
- name: build st
|
|
|
|
make:
|
2020-07-02 10:04:22 +00:00
|
|
|
chdir: "{{ ansible_user_dir }}/src/stterm"
|
2020-07-01 13:49:46 +00:00
|
|
|
|
|
|
|
- name: install st
|
|
|
|
become: yes
|
2020-07-02 10:04:22 +00:00
|
|
|
register: make
|
2020-07-01 13:49:46 +00:00
|
|
|
make:
|
2020-07-02 10:04:22 +00:00
|
|
|
chdir: "{{ ansible_user_dir }}/src/stterm"
|
2020-07-01 13:49:46 +00:00
|
|
|
target: install
|
2020-07-02 10:04:22 +00:00
|
|
|
|
|
|
|
- name: debug
|
|
|
|
debug: msg="{{ make.stdout }}"
|