iteration
This commit is contained in:
parent
f5730b2477
commit
eb5a9dc0e1
@ -4,12 +4,9 @@ Playbooks pour installation via Ansible de services pour le Fuz.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
1. Récupérer l'inventaire `hosts.ini` auprès d'un humain ou autre
|
1. Récupérer l'inventaire `hosts.ini` auprès d'un humain ou autre
|
||||||
2. Install ansible:
|
2. Installer ansible:
|
||||||
```bash
|
```bash
|
||||||
sudo apt update
|
sudo pip3 install ansible
|
||||||
sudo apt install software-properties-common
|
|
||||||
sudo apt-add-repository --yes --update ppa:ansible/ansible
|
|
||||||
sudo apt install ansible
|
|
||||||
```
|
```
|
||||||
<!-- 3. Install the roles: `ansible-galaxy install -r requirements.yml` -->
|
<!-- 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
|
- python3-pip
|
||||||
- tmux
|
- tmux
|
||||||
- bash-completion
|
- bash-completion
|
||||||
|
- rsync
|
||||||
|
- unattended-upgrades
|
||||||
# - zsh
|
# - 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 {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name *.fuz.re;
|
server_name fuz.re www.fuz.re;
|
||||||
|
|
||||||
# SSL
|
# SSL
|
||||||
ssl_certificate /etc/letsencrypt/live/fuz.re/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/fuz.re/fullchain.pem;
|
||||||
@ -43,7 +43,7 @@ server {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name .fuz.re;
|
server_name fuz.re www.fuz.re;
|
||||||
include snippets/letsencrypt.conf;
|
include snippets/letsencrypt.conf;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
apt:
|
apt:
|
||||||
name: matrix-synapse
|
name: matrix-synapse
|
||||||
update_cache: yes
|
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
|
src: templates/homeserver.yaml.j2
|
||||||
dest: /etc/matrix-synapse/homeserver.yaml
|
dest: /etc/matrix-synapse/homeserver.yaml
|
||||||
vars:
|
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