diff --git a/README.md b/README.md index f15f339..a2c67e3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/roles/webserver/tasks/packages.yml b/roles/webserver/tasks/packages.yml index 96342d3..50b56b8 100644 --- a/roles/webserver/tasks/packages.yml +++ b/roles/webserver/tasks/packages.yml @@ -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