Hey guys !
I’m currently working on my self-hosted server project, and I wanted to make its configuration reliable and scripted, that’s why I’m working with Ansible on that. For those who don’t know what Ansible is, it’s a way of scripting server configuration, by playing playbooks you can find on Ansible Galaxy. The difficulty here is that this script can be run twice (and more), so everytime I want to programmatically install an app for instance, I have to check first if it’s not already installed.
There are currently no role provided on galaxy to install Yunohost with Ansible, that’s why I made my own
It’s available here : https://galaxy.ansible.com/sylvainar/yunohost/
And the code is here : https://github.com/sylvainar/ansible-yunohost
For the moment, this roles supports :
- Installation of Yunohost
- Installation of domains and Let’s encrypt certifications
- Installation of apps
- Creation of users
- Firewall management ?
Anyway, I’d like some feedback on this. I’m also wondering if I’m gonna make a PR in order to write somewhere in the doc that an Ansible role is available.