Application de develop
sur octo
#1
@ -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`
|
@ -14,4 +14,6 @@
|
||||
- python3-pip
|
||||
- tmux
|
||||
- bash-completion
|
||||
- rsync
|
||||
- unattended-upgrades
|
||||
# - zsh
|
@ -1 +0,0 @@
|
||||
# Configure crontab of ansible pull to this repo to create a puppet-like kind of config
|
@ -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 / {
|
||||
|
@ -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:
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user