blob: 6227b350eab70e94ce0fc074f261d4ea3e2a6f37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# workstation/weechat-matrix ~~ roles/_workstation/weechat-matrix/tasks/main.yml
# build weechat_matrix from source
---
- shell: whoami && ls ~
register: out
- debug:
var: out
- name: ensure weechat-matrix repository is latest
git:
repo: "{{ weechat_matrix_repo }}"
dest: "{{ weechat_matrix_local }}"
- name: retrieve latest local pip version
shell: find /usr/bin /usr/local/bin -name "pip*" | sort -rV | head -n 1
register: pip_path
- name: install more-itertools for user
pip:
name: more-itertools
extra_args: --user
executable: "{{ pip_path.stdout }}"
- name: install weechat-matrix pip requirements
pip:
chdir: "{{ weechat_matrix_local }}"
requirements: requirements.txt
extra_args: --user
executable: "{{ pip_path.stdout }}"
environment:
PYTHONPATH: /usr/local/lib/python3.8/site-packages:$HOME/.local/bin
C_INCLUDE_PATH: $C_INCLUDE_PATH:/usr/local/include
- name: ensure matrix plugin directory is copied to weechat directory
copy:
src: "{{ weechat_matrix_local }}/matrix"
dest: ~/.weechat/python
mode: preserve
remote_src: true
- name: ensure matrix plugin is copied to weechat directory
copy:
src: "{{ weechat_matrix_local }}/main.py"
dest: ~/.weechat/python/matrix.py
mode: preserve
remote_src: true
|