Compare commits

..

No commits in common. "main" and "forgejo_composer_user" have entirely different histories.

17 changed files with 59 additions and 145 deletions

View File

@ -1,45 +1,38 @@
$ANSIBLE_VAULT;1.1;AES256
32326233646532393231613436626235366262343565626264386561616466353736303435303030
3666386236333538303034383762663663373661613638360a646138343865643464333539393333
66616134326333356332303337376631313066366236633936343436656638663834616132303334
3935626133353161340a393964346632346163376564316232653132363436353130396562653965
31333963373361353432323339633961313030363036353464313534346330353966666634643364
33643863346239303866313865363433343462393837396666636266323864343537666564303833
63323763646333343732303662306234346233373836326438343937303932323763346538626230
38633339643833616632636631316638396661633035396137373362326231303861313134383164
34366664616465313938323061306232373139343466346537326264613664336561366365333535
64393331383334653135333630346131633730333162663631376537323339373639323462653138
65396565336665626635623961343236646336396565646137366435373436353835343162393865
31666635636565616461353433376530613661343331663766626565346430653532653364353263
32663966393237626362383263663138653631653538653361366266643638653365373130613661
33333238323262363139623263663338633162616131303236376636313531623937303333633461
66653130623433666662343038353532393032636662323536656466636238643931656130396132
64636136653066393032343862663639636638323163343661636565623766303230626136663662
32653361343963396238356138363666333536623965626665643837633437343661323538333666
64353564326363313961363339346131356462326461656130376666616236316137386234316130
37666438336464646236343336623261366337343731356631313131323364636337373933663862
32646137636533653236326538663836303938393565343138393763323064363838663163643361
37316334623862313739316338633932356136343435306564333139346235393833653864393232
62316638363965336132303038363332613737613836653832373130356333636264383636383434
36383436376137633934356338653966373531323938653663396337653135316662386232336633
35373834393461623563663562646264356434323031343139373535623636623165386239383033
64373432313466666532343266373932316461646433633062373439613063646136663532306134
64613364616162323638646235353933313930626431373238633635386363633665646261303133
32303464633434633864303334653566343538386466656337663334623336303461393339653338
33396231646666376436343932656335613430626461643462363436396535353161373666333735
37303263653566353362363330653738303831643830316630303764343738393162323136613165
62323533313939336131303930363131373033626439326266633936353162643733373032643436
64363035343366356332646362353838376266313833623031386565303735326362646436636364
61336630363334383062616431383563363438613337623430386364626430633739633439333762
66653334646535623336393763663238613134653562613062376130346133353361326365373536
66383966316263326230313062613466663266666264653338303536333162653136396366313533
61313131633737306335646233626435616563316430316634343663326364333332323564653837
31336134633333303233326636363533383436616364323839396536616662303266366364623233
31346563396464326566646435323165313934666530373435613861376164666435613335363535
38356438393461383739313933353336326532336462303562653165303961383766333465363537
66316161323932646430343565363638353038363033343363356463643331653138626165623361
65346132373162643131626165333366623665326333303532643763343330653436376134393961
31393634616564313564643030373637346136333133343432663438383965626536396239626135
66366262346438616532373438396431383462373232396364303464633637366332663135326137
32393535356234393232613239353565356630616636323465366537333362343239623338363932
32383539346631323665
37383965623033356461393931656332323239323065326639613132306337393864366132366436
3130323864613235326338663735303931343363616435310a613164376464353130656539663036
31306261346331623261363533306336663731383664356136366662393632383136353338616130
6365626664643733620a323563316331663638333566653363323733373839656330333930363161
64666538656164653230633031663636343639393432326531343639356438316335633364633739
63303236313861383532386365613938303763373934303230626366636639643433646631343163
64316264616237336239346237643065396335313938373734613065383133616532626162393033
34613661353537373464643964356138653033623764353662386265316135353738353837616463
32653161303034363563373136303633326130643263653532313166383061306662333662623166
31363630303466353062356530383864666133376262333030323837313561653262313434663465
64376566346536303137646561316438346335343864346139653561663362613861633131393336
63346631373336666633386533313261366166663136306531333638363365383833643965613435
39376430653239323438613062653435653337663534633933323663613035643466303231346130
30643862633464663334386565356432323132336333653633373232333363653734666264333733
34333162333439336361313236313161626331396266653238313737656361663736383165393439
63326234626533663238353264353736303166383366633038373437366463666263616564303166
64393465396364313932316138393839613538343231343734336363663536646632373431623130
38653339396134303861636162326531616332353735336330623035633864323238333761363335
39373664613736613961666161323566303030656461623331353931363961323366653038656130
33356664353635343962343662313063633938343833643938626234383831363536623363366663
39343035393362326530316233303137616532356664353035393462306238303738653131346264
62636465613062326436333830306264656461356331306262363230336231643566633861633161
64393533313535333832343136343131376239363063613530383335326132336433626563333633
36386163613163616538643337666131663535333134626535613734393061653033633734613837
30373065623564333035616566373038393330613933623235613837383039626537653964366362
36643963373134613965333764396162303562633935633736633531336631353638613833643834
37366566663635323739643661393433353538636165623435356366333438393162393239363430
34626331303439343135353834336134396133636532643333336266626365616166363237376364
35323631656263343630643062376131386132356139623561653536313036316261323938636562
63343030623033373563626538383862626136343965613162326439316436306133663066656161
62393839326134613436626163626565303364373362356631363166316461323734323532623461
37303438666161653833363263633963323137303463343434363338303034303238313136343237
38346566613865646236343332666230356135343638623031383963666662336131616462383634
37383635376661386461306362373631373731313433643038316661613934663232666236613061
34353631323132353434623065613238383235316135373338383463626137313530366334333034
66613531646233643563336530623733343438666136383931363431306663383361313134646466
62623262643232356438653633306466383638336137366363336564643532623239

View File

@ -1,9 +1,4 @@
configure_borg_server: true
borg_auth_users:
- host: fabotest
key: "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArNhKFcJ6T08sn7kTTLf+rO9HEvgOvqfhv5HQ2sRf2tFYfjfCb0zHKnMkgW+sy5gMU10Lyx1r7juXCvqRC955uIM97m1B1Xc6sVqASVKuGPhCKfhxEaMAyBcWFdE+HYbCOPYVN+JMrcwWfbblwiZTtK1OCqaEUvDDI7cFeU68noXwggEp46T48eqMUdi541D9Y+BVx9HYAo6OCQz0+6eXwxJL+tpRcAAXIMMWv362CYHoOgIU45R7xVSMLY1k/HLrcEAblwxEaSpduCH5cWUXZE/56IyxpvP44BxZkVhNdqJLmg4hxBQWhoMNYiTZxbLay3W2TwBCM111cAtUx4M/jQ== fabio@pc-fabio"
- host: rup_next
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILWSd+iKs/Qsr2JGTprUC6sHsxyCadO3YF8U81aNF+IA root@nextcloud-aio-borgbackup"
- host: hassallab_next
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJmmOdetpapMz1S2dGPgJB7qodPU7RVj3bExnKv/B2zK root@nextcloud-aio-borgbackup"
key: "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArNhKFcJ6T08sn7kTTLf+rO9HEvgOvqfhv5HQ2sRf2tFYfjfCb0zHKnMkgW+sy5gMU10Lyx1r7juXCvqRC955uIM97m1B1Xc6sVqASVKuGPhCKfhxEaMAyBcWFdE+HYbCOPYVN+JMrcwWfbblwiZTtK1OCqaEUvDDI7cFeU68noXwggEp46T48eqMUdi541D9Y+BVx9HYAo6OCQz0+6eXwxJL+tpRcAAXIMMWv362CYHoOgIU45R7xVSMLY1k/HLrcEAblwxEaSpduCH5cWUXZE/56IyxpvP44BxZkVhNdqJLmg4hxBQWhoMNYiTZxbLay3W2TwBCM111cAtUx4M/jQ== fabio@pc-fabio"

View File

@ -6,9 +6,9 @@ pangolin_admin_email: "hassallah@mail.com"
pangolin_gerbil_subnet_group: "10.42.0.0/16"
configure_borg_client: true
borg_repos:
- name: pangolin
borg_passphrase: "{{ edge1_backup_pangolin_crypted_password }}"
paths_to_backup:
- "/home/{{ ansible_user }}/compose_projects/pangolin"
# # Email (SMTP) settings
# pangolin_email_smtp_host: "mail.com"
# pangolin_email_smtp_port: 587
# pangolin_email_smtp_user: "pango.lin@mail.com"
# pangolin_email_smtp_pass: "{{ pangolin_mail_crypted_password }}"
# pangolin_email_no_reply: "no-reply@mail.com"

View File

@ -11,7 +11,8 @@ borg_repos:
borg_passphrase: "{{ hserve1_backup_web_crypted_password }}"
paths_to_backup:
- "/home/{{ ansible_user }}/web"
- name: forgejo
borg_passphrase: "{{ hserve1_backup_forgejo_crypted_password }}"
paths_to_backup:
- "/home/{{ ansible_user }}/compose_projects/forgejo"
- name: test
borg_passphrase: "dummy_secret"
paths_to_backup:
- "/home/{{ ansible_user }}"
- "/proc/version"

View File

@ -1,7 +1,6 @@
---
- name: Evaluate borg client nodes
hosts: all
tags: clients
gather_facts: false
tasks:
- name: Gather configured clients
@ -11,7 +10,6 @@
- name: Configure borg backups system
tags: server
hosts: borg_clients_True:borg
debugger: on_failed
tasks:
@ -21,7 +19,7 @@
apply:
become: true
become_exe: "{{ become_exe_value }}"
when: configure_borg_client | default(false)
when: "{{ configure_borg_client | default(false) }} "
- name: Configure server
include_role:
@ -29,4 +27,4 @@
apply:
become: true
become_exe: "{{ become_exe_value }}"
when: configure_borg_server | default(false)
when: "{{ configure_borg_server | default(false) }} "

View File

@ -21,6 +21,7 @@
dest: "{{ borg_pool }}"
state: link
- name: Gathering clients configurations
set_fact:
borg_auth_users: "{{ borg_auth_users + hostvars[item]['borg_auth_users']}}"

View File

@ -3,7 +3,7 @@
include_tasks: prepare_borg.yaml
- name: Configure server
include_tasks: configure_borg_server.yaml
when: configure_borg_server | default(false)
when: "{{ configure_borg_server | default(false) }}"
- name: Configure client
include_tasks: configure_borg_client.yaml
when: configure_borg_client | default(false)
when: "{{ configure_borg_client | default(false) }} "

View File

@ -1,4 +1,2 @@
---
- include_tasks: forgejo_docker.yaml
tags:
- forgejo
- include_tasks: forgejo_docker.yaml

View File

@ -1,4 +1,2 @@
---
- include_tasks: docker_newt.yaml
tags:
- newt

View File

@ -1,4 +1,2 @@
---
- import_tasks: nextcloud_docker_aio.yaml
tags:
- nextcloud
- import_tasks: nextcloud_docker_aio.yaml

View File

@ -1,4 +1,2 @@
---
- include_tasks: docker_nginx.yaml
tags:
- nginx
- include_tasks: docker_nginx.yaml

View File

@ -1,5 +1,3 @@
---
- include_tasks: docker_pangolin.yaml
tags:
- pamgolin
- ansible.builtin.include_tasks:
file: docker_pangolin.yaml

View File

@ -1,2 +0,0 @@
vaultwarden_signup_allowed: true
vaultwarden_image_tag: 1.37.2

View File

@ -1,4 +0,0 @@
---
- include_tasks: vaultwarden_docker.yaml
tags:
- vaultwarden

View File

@ -1,24 +0,0 @@
---
- name: Create docker compose directory
ansible.builtin.file:
path: "{{ docker_compose_projects_base_path }}/vaultwarden"
state: directory
mode: '0755'
register: compose_dir
- name: Create data directory
ansible.builtin.file:
path: "{{ compose_dir.path }}/data"
state: directory
mode: '0755'
register: vaultwarden_data_dir
- name: Copy compose file
ansible.builtin.template:
src: templates/vaultwarden_compose.yaml.j2
dest: "{{ compose_dir.path }}/compose.yaml"
- name: Starting Vaultwarden compose project
community.docker.docker_compose_v2:
project_src: "{{ compose_dir.path }}"

View File

@ -1,19 +0,0 @@
networks:
newt:
name: newt_compose_default
external: true
services:
vaultwarden:
image: vaultwarden/server:{{ vaultwarden_image_tag }}
container_name: vaultwarden
restart: always
environment:
# DOMAIN: "https://vaultwarden.example.com" # required when using a reverse proxy; your domain; vaultwarden needs to know it's https to work properly with attachments
SIGNUPS_ALLOWED: "{{ vaultwarden_signup_allowed }}" # Deactivate this with "false" after you have created your account so that no strangers can register
volumes:
- {{ vaultwarden_data_dir.path }}:/data # the path before the : can be changed
ports:
- 11001:80 # you can replace the 11001 with your preferred port
networks:
- newt

View File

@ -1,15 +0,0 @@
---
- name: Install Vaultwarden
hosts: vaultwarden
tasks:
- include_role:
name: geerlingguy.docker
apply:
become: true
become_exe: "{{ become_exe_value }}"
- include_role:
name: "{{ item }}"
loop:
- newt_client
- vaultwarden