ansible/group_vars/server

130 lines
3.2 KiB
Plaintext
Raw Normal View History

2019-04-09 14:35:41 +00:00
systemd_mounts:
diskstation_git:
share: 192.168.1.10:/volume1/git
mount: /mnt/diskstation/git
type: nfs
options:
- " "
automount: true
backup_disk:
share: /dev/sda1
mount: /mnt/backup
2019-04-11 16:54:12 +00:00
type: ntfs-3g
2019-04-09 14:35:41 +00:00
options:
- uid=1024
- guid=100
automount: true
systemd_mounts_enabled:
- diskstation_git
- backup_disk
2019-04-10 18:25:29 +00:00
syncthing_address: "{{inventory_hostname}}:8384"
2019-04-11 16:54:12 +00:00
syncthing_gui_user: "{{user.name}}"
2019-04-14 09:46:12 +00:00
syncthing_gui_password: $2a$10$nJZ8YN/1mB84Cbi79BKka.6SFMAKF.CBwyCNJDA9qUgXdkcuBilx2
notification_mail: "{{ user.mail }}"
ssmtp_mailhub: smtp.{{ domain.name }}:587
ssmtp_hostname: "{{ domain.name }}"
ssmtp_auth_user: "{{ user.mail }}"
ssmtp_auth_pass: "{{ vault_default_password }}"
rsynclocations:
- name: backup nas
location: /mnt/backup
readonly: "no"
rsynchostalloawed: 192.168.1.10
fail2ban_destmail: "{{ user.mail }}"
fail2ban_sendmail: "{{ user.mail }}"
Gandi_API_KEYS: "{{ vault_gandi_API_Keys }}"
Gandi_Domain: "{{ domain.name }}"
2019-04-14 13:51:48 +00:00
Gandi_Record: www
nginx_vhosts:
- listen: "80"
server_name: "localhost"
root: "/usr/share/nginx/html/"
error_page: "404 /404/404.html"
filename: "default.conf"
state: "present"
template: "{{ nginx_vhost_template }}"
extra_parameters: |
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location / {
index index.php index.html index.htm ;
default_type text/html;
2019-04-14 13:51:48 +00:00
}
2019-04-14 13:51:48 +00:00
location =/ {
rewrite ^ /starter;
}
location ~ \.php$ {
# try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 800;
fastcgi_index index.php;
include fastcgi_params;
}
include /etc/nginx/conf.d/*.default;
2019-04-14 13:51:48 +00:00
2019-04-14 14:49:30 +00:00
nginx_realIP_Proxy: 192.168.1.10/24
php_extention_enable:
- iconv
- mysqli
- pdo_mysql
2019-04-15 11:38:47 +00:00
- soap
2019-04-16 17:54:24 +00:00
mysql_root_password: "{{ vault_mysql_root }}"
mysql_root_password_update: true
2019-04-23 16:34:18 +00:00
2019-04-16 15:54:22 +00:00
2019-04-17 11:37:19 +00:00
# Users.
mysql_users:
- name: dump
host: localhost
password: "{{ vault_mysql_dump }}"
2019-04-19 17:58:52 +00:00
priv: "*.*:SELECT,SHOW DATABASES,LOCK TABLES"
2019-04-17 11:37:19 +00:00
ttrss_db_password: "{{ vault_mysql_ttrss }}"
ttrss_log_destination: ""
2019-04-23 16:34:18 +00:00
ttrss_SQl_target_file: /mnt/diskstation/git/backup/mysql/last/ttrss.sql
2019-04-16 15:54:22 +00:00
bind_listen_ipv4: ['any']
bind_allow_query: ['any']
bind_zone_master_server_ip: 192.168.1.10
bind_zone_domains:
- name: ducamps.win
hostmaster_email: "vincent@ducamps.win"
- name: 1.168.192.in-addr.arpa
hostmaster_email: "vincent@ducamps.win"
bind_forwarders:
- '1.1.1.1'
- '80.67.169.40'
bind_recursion: true
bind_allow_recursion:
2019-04-17 11:37:19 +00:00
- "192.168.1.0/24"
2019-04-17 19:07:25 +00:00
gitea_http_listen: 0.0.0.0
gitea_db_type: mysql
gitea_db_host: localhost:3306
gitea_db_name: gitea
gitea_db_user: gitea
gitea_db_password: "{{ vault_mysql_gitea }}"
gitea_ssh_domain: "{{ansible_hostname}}"
gitea_start_ssh: false
2019-04-23 16:34:18 +00:00
gitea_ssh_port: 22
gitea_SQl_target_file: /mnt/diskstation/git/backup/mysql/last/gitea.sql