iteration

This commit is contained in:
Hadrien 2022-06-15 00:14:45 +02:00
parent f5730b2477
commit eb5a9dc0e1
6 changed files with 19 additions and 11 deletions

View File

@ -4,12 +4,9 @@ Playbooks pour installation via Ansible de services pour le Fuz.
## Deployment
1. Récupérer l'inventaire `hosts.ini` auprès d'un humain ou autre
2. Install ansible:
2. Installer ansible:
```bash
sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
sudo pip3 install ansible
```
<!-- 3. Install the roles: `ansible-galaxy install -r requirements.yml` -->
1. Launch the playbook: `ansible-playbook main.yml -K --check`
1. Launch the playbook sans faire de changements: `ansible-playbook main.yml -K --check --diff -vv`

View File

@ -14,4 +14,6 @@
- python3-pip
- tmux
- bash-completion
- rsync
- unattended-upgrades
# - zsh

View File

@ -1 +0,0 @@
# Configure crontab of ansible pull to this repo to create a puppet-like kind of config

View File

@ -30,7 +30,7 @@ server {
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name *.fuz.re;
server_name fuz.re www.fuz.re;
# SSL
ssl_certificate /etc/letsencrypt/live/fuz.re/fullchain.pem;
@ -43,7 +43,7 @@ server {
server {
listen 80;
listen [::]:80;
server_name .fuz.re;
server_name fuz.re www.fuz.re;
include snippets/letsencrypt.conf;
location / {

View File

@ -5,7 +5,8 @@
apt:
name: matrix-synapse
update_cache: yes
- template:
- name: Config Synapse conforme à ce qu'il y a dans ce dépôt Ansible
template:
src: templates/homeserver.yaml.j2
dest: /etc/matrix-synapse/homeserver.yaml
vars:

View File

@ -1 +1,10 @@
# lighttpd ou nginx ?
- hosts: octo.fuz.re
tasks:
- apt: Nginx installé
name: nginx
- name: On charge Nginx
service:
name: nginx
state: started
enabled: enabled