feat: Use the jriou.general Ansible collection
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
44c974c755
commit
02d3ee924d
12 changed files with 49 additions and 199 deletions
41
README.md
41
README.md
|
|
@ -78,6 +78,47 @@ tofu destroy
|
|||
|
||||
# Ansible
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
cd ansible
|
||||
ansible-galaxy collection install -r requirements.yml
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
File `group_vars/galene.yml`:
|
||||
|
||||
```yaml
|
||||
certbot_domain: &domain galene.tld
|
||||
certbot_email: contact@galene.tld
|
||||
galene_domain: *domain
|
||||
galene_groups:
|
||||
group1:
|
||||
users:
|
||||
admin:
|
||||
password: CHANGEME
|
||||
permissions: op
|
||||
user1:
|
||||
password: CHANGEME
|
||||
permissions: present
|
||||
user2:
|
||||
password: CHANGEME
|
||||
permissions: present
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
ansible-playbook site.yml
|
||||
```
|
||||
|
||||
Do not forget to destroy the infrastructure when you are done with the video
|
||||
conference.
|
||||
|
||||
# Aliases
|
||||
|
||||
```bash
|
||||
alias galene-start='cd /path/to/galene-cloud/tofu && tofu apply && cd /path/to/galene-cloud/ansible && ansible-playbook site.yml'
|
||||
alias galene-stop='cd /path/to/galene-cloud/tofu && tofu destroy'
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue