From 33dd9eb836f60ae35c29f228109f69e0533f1f26 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 14 Apr 2019 11:46:12 +0200 Subject: [PATCH] add variable --- group_vars/all/all | 6 +++++- group_vars/all/all_vault | 15 +++++++++------ group_vars/server | 24 +++++++++++++++++++++++- server.yml | 15 ++++++++++++++- 4 files changed, 51 insertions(+), 9 deletions(-) diff --git a/group_vars/all/all b/group_vars/all/all index 59e0590..835bbbb 100644 --- a/group_vars/all/all +++ b/group_vars/all/all @@ -1,4 +1,8 @@ ##ansible_python_interpreter: /usr/bin/python2 user: name: vincent - uid: 1024 \ No newline at end of file + uid: 1024 + mail: vincent@ducamps.win + +domain: + name: ducamps.win \ No newline at end of file diff --git a/group_vars/all/all_vault b/group_vars/all/all_vault index 9f3fb6a..bda2981 100644 --- a/group_vars/all/all_vault +++ b/group_vars/all/all_vault @@ -1,7 +1,10 @@ $ANSIBLE_VAULT;1.1;AES256 -37316536616233313365623539323834623836653839376231383563323639616331386164343832 -3665663937376437323236396237616339616538643635610a643439343365613139623964623831 -66616430623239363436656538306232373339303737613531326463623662383566363662333230 -6338623736373834660a653136373963346265376639663836323537666332393831386662396361 -66396432393131373830666532646530393038353333663936613533363833343264326263326665 -6233323135383039626138656339363739643463373438353234 +36336139353839303537376234623535363838613761633137633166636261353862643935393563 +6363356531376261333364306238343961343435336637380a623134636661326262623635326266 +62623433343939353866373365343966656533376230323835313131326130326265316364336537 +6332306265643336630a326530656536373662613636353735666164326461333232363534316564 +36643333636464663734666364366436366235326136313134393965626636643034396662383261 +34363236653530326635303239643166313966363062333534616332383736626430346633396438 +61353964643930353731316664393534356366373563326337303964323366333733386134646337 +31303736383735366662323637336635656161376337313563386438376136653365656433663336 +3530 diff --git a/group_vars/server b/group_vars/server index c02f1fe..8bf9d00 100644 --- a/group_vars/server +++ b/group_vars/server @@ -21,4 +21,26 @@ systemd_mounts_enabled: syncthing_address: "{{inventory_hostname}}:8384" syncthing_gui_user: "{{user.name}}" -syncthing_gui_password: $2a$10$nJZ8YN/1mB84Cbi79BKka.6SFMAKF.CBwyCNJDA9qUgXdkcuBilx2 \ No newline at end of file +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 }}" +Gandi_Record: www \ No newline at end of file diff --git a/server.yml b/server.yml index 4957eb4..95434e8 100644 --- a/server.yml +++ b/server.yml @@ -1,8 +1,21 @@ --- - hosts: server + tasks: + - name: install terminfo + pacman: + state: present # not required. choices: absent;latest;present. Desired state of the package. + name: + - termite-terminfo # not required. Name or list of names of the packages to install, upgrade, or remove. + become: yes + roles: - - dns - ssmtp + - cronie + - rsyncd + - gandi-dyn-dns + - fail2ban + - dns - tt-rss - gitea - user_config +