Ajouter des paquets python et installer ttbp (feels) (#1)

This commit is contained in:
merry_envs 2020-04-12 19:47:51 -04:00 committed by southerntofu
parent 959397d0d7
commit 5d242e567a
2 changed files with 33 additions and 0 deletions

View File

@ -20,6 +20,7 @@ Pour créer un compte, il suffit de le déclarer dans host_vars/fr.yml:
- [ ] Un onion pour le serveur
- [ ] Plein d'onions pour les pages perso
- [ ] Authentification centralisée (Single Sign-On)
- [x] Plateforme de blogging depuis le shell (ttbp)
- Expérience utilisateurice (UX)
- [ ] Script d'accueil pour choisir son shell, définir un MDP
- [ ] MOTD accueillant avec quelques exemples de commandes sympathiques

View File

@ -44,3 +44,35 @@
# path: /tmp/zola
# state: absent
# when: not zola.stat.exists
- 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: "{{ packages }}"
state: present
update_cache: yes
vars:
packages:
- python-setuptools
- 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