27 lines
580 B
YAML
27 lines
580 B
YAML
- stat:
|
|
path: /usr/local/bin/ttbp
|
|
register: ttbp
|
|
|
|
- name: Télécharger la source de ttbp
|
|
git:
|
|
repo: https://tildegit.org/envs/ttbp.git
|
|
dest: /tmp/ttbp
|
|
when: not ttbp.stat.exists
|
|
|
|
- name: ttbp a des dépendances non installées dans main.yml
|
|
apt:
|
|
name: "python-setuptools"
|
|
state: present
|
|
|
|
- name: Compiler ttbp
|
|
command:
|
|
cmd: "python /tmp/ttbp/setup.py install"
|
|
chdir: /tmp/ttbp
|
|
when: not ttbp.stat.exists
|
|
|
|
- name: Supprimer les fichiers temporaires de ttbp
|
|
file:
|
|
path: /tmp/ttbp
|
|
state: absent
|
|
when: not ttbp.stat.exists
|