forked from tilde-fr/infra
Ajouter des paquets python et installer ttbp (feels) (#1)
This commit is contained in:
parent
959397d0d7
commit
5d242e567a
|
@ -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
|
- [ ] Un onion pour le serveur
|
||||||
- [ ] Plein d'onions pour les pages perso
|
- [ ] Plein d'onions pour les pages perso
|
||||||
- [ ] Authentification centralisée (Single Sign-On)
|
- [ ] Authentification centralisée (Single Sign-On)
|
||||||
|
- [x] Plateforme de blogging depuis le shell (ttbp)
|
||||||
- Expérience utilisateurice (UX)
|
- Expérience utilisateurice (UX)
|
||||||
- [ ] Script d'accueil pour choisir son shell, définir un MDP
|
- [ ] Script d'accueil pour choisir son shell, définir un MDP
|
||||||
- [ ] MOTD accueillant avec quelques exemples de commandes sympathiques
|
- [ ] MOTD accueillant avec quelques exemples de commandes sympathiques
|
||||||
|
|
|
@ -44,3 +44,35 @@
|
||||||
# path: /tmp/zola
|
# path: /tmp/zola
|
||||||
# state: absent
|
# state: absent
|
||||||
# when: not zola.stat.exists
|
# 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
|
||||||
|
|
Loading…
Reference in New Issue