Ajouter des paquets python et installer ttbp (feels) #1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user