Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9f7ab3912 |
No files matched your search
Executable → Regular
File mode changed.
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"editor.fontFamily": "'JetBrains Mono', 'NotoMono NF', 'DejaVuSansMono NF', 'MesloLGS NF', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
|
"editor.fontFamily": "'JetBrains Mono', 'NotoMono NF', 'DejaVuSansMono NF', 'MesloLGS NF', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
|
||||||
"editor.fontSize": 17,
|
"editor.fontSize": 17
|
||||||
"ansible.python.interpreterPath": "/bin/python"
|
|
||||||
}
|
}
|
||||||
Executable → Regular
+1
-1
@@ -2,6 +2,6 @@
|
|||||||
inventory = /opt/ansible-pull/hosts
|
inventory = /opt/ansible-pull/hosts
|
||||||
log_path = ~/ansible.log
|
log_path = ~/ansible.log
|
||||||
retry_files_enabled = False
|
retry_files_enabled = False
|
||||||
deprecation_warnings = True
|
deprecation_warnings=False
|
||||||
[inventory]
|
[inventory]
|
||||||
enable_plugins = ini
|
enable_plugins = ini
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
collections:
|
|
||||||
- name: community.general
|
|
||||||
version: ">=6.0.0" # Es ist eine gute Praxis, eine Mindestversion anzugeben
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
---
|
|
||||||
- name: system setup | aide | install aide package
|
|
||||||
tags: aide,hardening,system
|
|
||||||
package:
|
|
||||||
name: aide
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: system setup | aide | check if aide database exists
|
|
||||||
tags: aide,hardening,system
|
|
||||||
stat:
|
|
||||||
path: /var/lib/aide/aide.db
|
|
||||||
register: aide_db
|
|
||||||
|
|
||||||
- name: system setup | aide | initialize aide database if it does not exist
|
|
||||||
tags: aide,hardening,system
|
|
||||||
block:
|
|
||||||
- name: system setup | aide | run aide --init (this may take a while)
|
|
||||||
command: aide --config /etc/aide/aide.conf --init
|
|
||||||
register: aide_init_result
|
|
||||||
changed_when: "'AIDE, version' in aide_init_result.stdout"
|
|
||||||
async: 1800 # Allow up to 30 minutes for initialization
|
|
||||||
poll: 15
|
|
||||||
|
|
||||||
- name: system setup | aide | copy new database to be the active one
|
|
||||||
copy:
|
|
||||||
src: /var/lib/aide/aide.db.new
|
|
||||||
dest: /var/lib/aide/aide.db
|
|
||||||
remote_src: true
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0600'
|
|
||||||
when: aide_init_result.changed
|
|
||||||
when: not aide_db.stat.exists
|
|
||||||
|
|
||||||
- name: system setup | aide | schedule daily check
|
|
||||||
tags: aide,hardening,system
|
|
||||||
cron:
|
|
||||||
name: "AIDE daily check"
|
|
||||||
minute: "0"
|
|
||||||
hour: "5"
|
|
||||||
job: "/usr/bin/aide --config /etc/aide/aide.conf --check"
|
|
||||||
cron_file: aide_check # Creates /etc/cron.d/aide_check
|
|
||||||
Executable → Regular
+5
-35
@@ -1,39 +1,9 @@
|
|||||||
---
|
- name: restart_nginx
|
||||||
- name: apt_update
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
|
||||||
|
|
||||||
- name: restart_sshd
|
|
||||||
service:
|
service:
|
||||||
name: "{{ openssh_service }}"
|
name: "nginx"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: restart_fail2ban
|
- name: restart_snmpd
|
||||||
service:
|
service:
|
||||||
name: "fail2ban"
|
name: "snmpd"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: restart_logind
|
|
||||||
service:
|
|
||||||
name: "logind"
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
- name: reload ufw
|
|
||||||
command: ufw reload
|
|
||||||
listen: "reload ufw firewall"
|
|
||||||
|
|
||||||
- name: restart auditd
|
|
||||||
service:
|
|
||||||
name: auditd
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
- name: restart rsyslog
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: rsyslog
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
- name: restart_telegraf
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: "telegraf"
|
|
||||||
state: restarted
|
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
+1
-12
@@ -1,12 +1 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
mta_package: "ssmtp"
|
||||||
33393965343936656232313034313838313330336565336265383361373666343366623535353432
|
|
||||||
6465366237353937396136613539646634653233376339650a323436313066653566373335643766
|
|
||||||
65376439303639363262333537373661656363366561613432643536373637653862356261613739
|
|
||||||
3963643534613338300a313634353631373635333435346266613238633831356332633332376362
|
|
||||||
30333434663365396639613336636138373964383063393862363531343866386537306664393863
|
|
||||||
64653836613864636635346135633630313261623032613161613661303630623462336335366461
|
|
||||||
30613366383265656264326432653339323736623933326132323866643939303233646237633936
|
|
||||||
65373031386338323463623631656461653163333163666232656664386362663666373039613237
|
|
||||||
64383437316463333630646333633162333836633639633564633762653134623430336661366233
|
|
||||||
61353861363062616135383936343938663737336233376165336135653930636430346139393536
|
|
||||||
663362613262363561376631616138366662
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
lifebook-u939.yml
|
|
||||||
Executable → Regular
+5
-7
@@ -2,9 +2,7 @@
|
|||||||
ssh_port: 22
|
ssh_port: 22
|
||||||
ssh_users: rene
|
ssh_users: rene
|
||||||
|
|
||||||
copy_ssh_priv_keys: true
|
#purpose selection
|
||||||
|
|
||||||
# purpose selection
|
|
||||||
database: false
|
database: false
|
||||||
development: true
|
development: true
|
||||||
dhcpserver: false
|
dhcpserver: false
|
||||||
@@ -18,10 +16,10 @@ proxyserver: false
|
|||||||
video_editing: true
|
video_editing: true
|
||||||
webserver: false
|
webserver: false
|
||||||
|
|
||||||
# shell selection
|
#shell selection
|
||||||
zsh: true
|
zsh: true
|
||||||
|
|
||||||
# desktop environment selection
|
#desktop environment selection
|
||||||
cinnamon: false
|
cinnamon: false
|
||||||
deepin: false
|
deepin: false
|
||||||
gnome: false
|
gnome: false
|
||||||
@@ -29,7 +27,7 @@ kde: true
|
|||||||
mate: false
|
mate: false
|
||||||
xfce: false
|
xfce: false
|
||||||
|
|
||||||
# application selection
|
#application selection
|
||||||
alacritty: true
|
alacritty: true
|
||||||
alsa: true
|
alsa: true
|
||||||
autofs: true
|
autofs: true
|
||||||
@@ -40,7 +38,7 @@ broot: true
|
|||||||
chromium: true
|
chromium: true
|
||||||
clonezilla: true
|
clonezilla: true
|
||||||
cmatrix: true
|
cmatrix: true
|
||||||
davinci_resolve: true
|
davinci-resolve: true
|
||||||
dbeaver: true
|
dbeaver: true
|
||||||
digikam: true
|
digikam: true
|
||||||
dislocker: true
|
dislocker: true
|
||||||
|
|||||||
Executable → Regular
+1
-5
@@ -1,7 +1,3 @@
|
|||||||
---
|
---
|
||||||
netdata: false
|
netdata: false
|
||||||
set_hosts: true
|
set_hosts: true
|
||||||
|
|
||||||
agh_cpu: amd64
|
|
||||||
agh_os: linux
|
|
||||||
agh_channel: release
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
netdata: false
|
|
||||||
set_hosts: true
|
|
||||||
Executable → Regular
+29
@@ -0,0 +1,29 @@
|
|||||||
|
hosts_to_backup:
|
||||||
|
- { hostname: "mailcow", fqdn: "mewissen.site", ip: "192.168.3.8" }
|
||||||
|
- { hostname: "jitsi", fqdn: "mewimeet.de", ip: "192.168.3.10" }
|
||||||
|
- { hostname: "mewitoot", fqdn: "mewitoot.de", ip: "192.168.3.11" }
|
||||||
|
- { hostname: "coruscant", fqdn: "coruscant.universe.local" }
|
||||||
|
- { hostname: "ns1", fqdn: "ns1.universe.local" }
|
||||||
|
- { hostname: "docker01", fqdn: "docker01.universe.local" }
|
||||||
|
- { hostname: "pi-alert", fqdn: "pi-alert.universe.local" }
|
||||||
|
- { hostname: "mariadb01", fqdn: "mariadb01.universe.local" }
|
||||||
|
- { hostname: "mariadb02", fqdn: "mariadb02.universe.local" }
|
||||||
|
- { hostname: "mariadb03", fqdn: "mariadb03.universe.local" }
|
||||||
|
- { hostname: "icinga", fqdn: "icinga.universe.local" }
|
||||||
|
- { hostname: "samba-ad-dc", fqdn: "samba-ad-dc.universe.local" }
|
||||||
|
- { hostname: "webserver", fqdn: "webserver.universe.local" }
|
||||||
|
- { hostname: "elk-stack", fqdn: "elk-stack.universe.local" }
|
||||||
|
- { hostname: "netbox", fqdn: "netbox.universe.local" }
|
||||||
|
- { hostname: "haproxy01", fqdn: "haproxy01.universe.local" }
|
||||||
|
- { hostname: "haproxy02", fqdn: "haproxy02.universe.local" }
|
||||||
|
- { hostname: "librenms", fqdn: "librenms.universe.local" }
|
||||||
|
- { hostname: "pi-hole", fqdn: "pi-hole.universe.local" }
|
||||||
|
- { hostname: "adguard", fqdn: "adguard.universe.local" }
|
||||||
|
- { hostname: "grafana", fqdn: "grafana.universe.local" }
|
||||||
|
- { hostname: "nextcloud", fqdn: "nextcloud.universe.local" }
|
||||||
|
- { hostname: "dhcp-kea", fqdn: "dhcp-kea.universe.local" }
|
||||||
|
- { hostname: "dhcp-stork", fqdn: "dhcp-stork.universe.local" }
|
||||||
|
- { hostname: "unbound01", fqdn: "unbound01.universe.local" }
|
||||||
|
- { hostname: "unbound02", fqdn: "unbound02.universe.local" }
|
||||||
|
- { hostname: "mail", fqdn: "mail.universe.local" }
|
||||||
|
- { hostname: "graylog", fqdn: "graylog.universe.local" }
|
||||||
@@ -1 +0,0 @@
|
|||||||
caddy: true
|
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
@@ -1,2 +0,0 @@
|
|||||||
powerdns_server: True
|
|
||||||
powerdns_primary: True
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
powerdns_server: True
|
|
||||||
powerdns_primary: False
|
|
||||||
powerdns_secondary: True
|
|
||||||
pdns_pri_server: "192.168.1.190"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
dnssec1.universe.local.yml
|
|
||||||
Executable → Regular
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
run_portainer: false
|
run_portainer: true
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
run_portainer: false
|
|
||||||
run_portainer_agent: true
|
|
||||||
Executable → Regular
+1
-2
@@ -1,3 +1,2 @@
|
|||||||
---
|
---
|
||||||
run_portainer: false
|
run_portainer: false
|
||||||
run_portainer_agent: true
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
---
|
|
||||||
Whitespace-only changes.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Whitespace-only changes.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
@@ -1 +0,0 @@
|
|||||||
---
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
netdata: true
|
|
||||||
set_hosts: true
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---
|
|
||||||
ssh_port: 22
|
|
||||||
ssh_users: rene
|
|
||||||
|
|
||||||
copy_ssh_priv_keys: true
|
|
||||||
|
|
||||||
# purpose selection
|
|
||||||
database: false
|
|
||||||
development: false
|
|
||||||
dhcpserver: false
|
|
||||||
fileserver: false
|
|
||||||
mailserver: false
|
|
||||||
mobile: true
|
|
||||||
nameserver: false
|
|
||||||
photo_editing: false
|
|
||||||
printspooler: false
|
|
||||||
proxyserver: false
|
|
||||||
video_editing: false
|
|
||||||
webserver: false
|
|
||||||
|
|
||||||
# shell selection
|
|
||||||
zsh: true
|
|
||||||
|
|
||||||
# desktop environment selection
|
|
||||||
cinnamon: true
|
|
||||||
deepin: false
|
|
||||||
gnome: false
|
|
||||||
kde: false
|
|
||||||
mate: false
|
|
||||||
xfce: false
|
|
||||||
|
|
||||||
# application selection
|
|
||||||
alacritty: true
|
|
||||||
alsa: true
|
|
||||||
autofs: true
|
|
||||||
bashtop: true
|
|
||||||
borgbackup: true
|
|
||||||
brave: true
|
|
||||||
broot: true
|
|
||||||
chromium: true
|
|
||||||
clonezilla: true
|
|
||||||
cmatrix: true
|
|
||||||
davinci_resolve: false
|
|
||||||
dbeaver: false
|
|
||||||
digikam: false
|
|
||||||
dislocker: true
|
|
||||||
docker: false
|
|
||||||
exa: true
|
|
||||||
filelight: true
|
|
||||||
firefox: true
|
|
||||||
games: true
|
|
||||||
gimp: false
|
|
||||||
google_chrome: false
|
|
||||||
joplin: true
|
|
||||||
keepass: false
|
|
||||||
keepassxc: true
|
|
||||||
libreoffice: true
|
|
||||||
midnightcommander: true
|
|
||||||
nextcloud_client: true
|
|
||||||
nvidia: false
|
|
||||||
obs: false
|
|
||||||
pacaur: false
|
|
||||||
ranger: true
|
|
||||||
screenkey: true
|
|
||||||
syncthing: true
|
|
||||||
thunderbird: true
|
|
||||||
vifm: true
|
|
||||||
virtualbox: false
|
|
||||||
vivaldi: false
|
|
||||||
yay: false
|
|
||||||
yubikey: true
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
lifebook-u939.yml
|
|
||||||
Executable → Regular
+17
-22
@@ -1,22 +1,17 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
---
|
||||||
36303665633161336631373965373436653433326630666234393137316361616636396238303139
|
branch: master
|
||||||
3731666534646135346536663965306164383361333566350a666337353564643066646366643961
|
|
||||||
32353636396134396531333939363338393331353735663363653636383333336333666361623330
|
#ansible_cron_minute: "40"
|
||||||
6662663864633664390a383033343563623732333064376331303536666633306139623865353539
|
#ssh_port: 22
|
||||||
33613262316161653364326433303263616665316261323965336263313064656433383331653432
|
#ssh_users: "user1 user2"
|
||||||
36666461306437316137633261663062633734353130386432623463613366326363383431343433
|
copy_ssh_priv_keys: false
|
||||||
38633564646635666162353736643966656537313531336365303762663562623064316333303131
|
|
||||||
61643439323238373837633566636563646537343533613262383832353338643934333939383464
|
# platform-specific
|
||||||
65303636613638643065303337316662373538653230363764633534656365356563393462333964
|
linode_instance: false
|
||||||
39336464666337653263353434663039326663353638313161396439303733383265653961666361
|
microcode_amd_install: false
|
||||||
62366333373237643732303533326166353534303066303664613532666331646665643763323966
|
microcode_intel_install: false
|
||||||
38623730326630306536343530653234663864386662653130353334343363323232323966393363
|
proxmox_instance: false
|
||||||
38353465643434613837653939376665303933376437346161656231313832643264653830663535
|
raspberry_pi: false
|
||||||
63333165623036653566616266373162303035366632316135626131376162636637643334356131
|
|
||||||
36636166366234343966343231366361383162633236626665653365393661346235626161333861
|
# server
|
||||||
32316465663465653933356561616366373735636664373962323939653234393661663834613136
|
unattended_upgrades: true
|
||||||
66383463626632333432343164333963373065373831656438616133326436646437326565356334
|
|
||||||
32663262376163623530653363666331333838643764383661313935643935386463393037633439
|
|
||||||
39613635623866396439613137376262393433306565336432343933306437346561653434313336
|
|
||||||
30306262653833623739626534646162643537343666343735336138613661623461326664363561
|
|
||||||
38636566613363303631643637613535316366636137376364613562646236333838
|
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
+25
-26
@@ -1,26 +1,25 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
---
|
||||||
61306233663762613238316535386561663239336432623063636665373333373834376462323062
|
branch: master
|
||||||
3262653861663137323539363633333263343132396564320a393939356234303136353832343266
|
hostname: mewimeet.com
|
||||||
33336563613932646332356663386537633132323062643838363763616533396332666238323435
|
|
||||||
6430633233333631300a313637636265303831613363333330336265336330636231643666643634
|
ansible_cron_minute: "40"
|
||||||
31346662646634346138353231326534656438343033333363313132326165376536393264653335
|
ssh_port: 22
|
||||||
34363835303430353838366538626363636336323831306334373933303164633466613862333936
|
ssh_users: "user1 user2"
|
||||||
30396238356438373235316137333439346238643939393330313236353666656635356632343561
|
|
||||||
37316537663466653234363938313138353235356466386230323735646234653465393130636531
|
# platform-specific
|
||||||
38396631333365373632366563336538353163636235346638363439366338636266373836316236
|
linode_instance: true
|
||||||
30373165643236306630323432643363613662376637353537633230356537343666656639616432
|
microcode_amd_install: false
|
||||||
30346539393034626538623362636665643630643666636135336463616130383530616135393366
|
microcode_intel_install: false
|
||||||
31356535313932313264386631313062353436653764653330353837326663353137386236386234
|
proxmox_instance: false
|
||||||
63363331373736336538353331326531663262313330626636643061666561333566623635313836
|
raspberry_pi: false
|
||||||
63306462363961396639326435666633633532326635356430386436336666343766626530333232
|
preinstalled: true
|
||||||
36366466303666393262336334353935346433336633373035663433356561303766353930643736
|
|
||||||
32633762393136393039653365626165636233323838303364666436393663656362343033363534
|
# server
|
||||||
38653832333063323765383036626563316637383636633339366235613439616138366633323636
|
set_hosts: true
|
||||||
31356333363931613230393934356261633965393464336135333238616131333564343235633233
|
unattended_upgrades: true
|
||||||
34643863393962336461386439343333383763613730346661346430336133316262643939383065
|
web_server: true
|
||||||
39633261313732653063336161383033323231626337663237323063656230366663366538306534
|
netdata: true
|
||||||
36643665386234643138646636663537623262373839383731353866383562643363666561646630
|
|
||||||
38313331653962613864323737613530353938663962636663396563356166643766626335396361
|
# VPN
|
||||||
66323230336333303730323730393532353562303636626330616336646635623662656462666430
|
wireguard: true
|
||||||
30613664346135653065623537646130323238333463393535343136373461653637613637663736
|
wg_local_ip: 192.168.3.6/32
|
||||||
3837
|
|
||||||
Executable → Regular
+27
-30
@@ -1,30 +1,27 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
---
|
||||||
34393439353637633564666632323136353661363935646461633537643866643065633439653133
|
branch: master
|
||||||
6137633034363132353632633938643333396334346535350a356436333837333162313733623935
|
hostname: mewimeet.de
|
||||||
34353239303262663637663363316330663066313534366130626431323535623435373431323364
|
|
||||||
6262373365653334630a323363376436383031333332353033306230323466656335646636353361
|
ansible_cron_minute: "40"
|
||||||
33383961383961333164393934323961373234386132383166313736373762313730646137343238
|
ssh_port: 22
|
||||||
63353334313831346238303466353862343466343931333839643863316430373239653864383930
|
ssh_users: "user1 user2"
|
||||||
30353833336163376233633762646531323464666133386564323662373232386232313762343066
|
|
||||||
36333238353538343666353930396634656162653264616164343835646666633938663630333736
|
# platform-specific
|
||||||
38346438656332653236333665383662616231623361626161643532643137623431326636653666
|
linode_instance: true
|
||||||
35353635663731343937346638306564343263303938363332306239346264346133386564323965
|
microcode_amd_install: false
|
||||||
64343837356164646639626166343866373933663464616638646361393330653437633937303965
|
microcode_intel_install: false
|
||||||
38613738666637343766646463323434373437343336363761323964616531666564613464663963
|
proxmox_instance: false
|
||||||
36623432373064343733316135353435653564363265666234326462363266346630613837313566
|
raspberry_pi: false
|
||||||
33313238323230333136656562383135386430653965323832613631356435386238653664666362
|
preinstalled: true
|
||||||
34633561353837616332623466666530623232336333373363313635303939333532353164373639
|
|
||||||
34316236623965633736623833653735633732373963656236363766303263386236336664306233
|
# server
|
||||||
35356439356635356433343130633636336239626139373239386265383232353139303263633661
|
set_hosts: true
|
||||||
64616638663236356131623338323762616337333462326562366434616537383666363833633066
|
unattended_upgrades: true
|
||||||
39616131343162383533303731343739353839323533396364616665343833363432366431366530
|
web_server: true
|
||||||
38353330326236336664356239363631363337366637393564323765623334653932613333663636
|
netdata: true
|
||||||
30393530666462643465356132353737636532373039313466383133376635383634623161313932
|
bind: true
|
||||||
62656363306130633362383838306234623564616234326237656638333536316132303165363132
|
unbound: true
|
||||||
65386535333266626165316665353561616330373030633833323635616564366332393239376636
|
|
||||||
36626165343434313937663035386532613563386661353633306330366130383038353231336632
|
# VPN
|
||||||
33646135666638313733383939313536343766623932383563363866386161303562313338373066
|
wireguard: true
|
||||||
66653633316332343562303063636361613862386562333337643566643333633930653263306339
|
wg_local_ip: 192.168.3.10/24
|
||||||
37333630646135653334323939326663643830306532333730653736633064373136653933623830
|
|
||||||
66386466316461613164373966633963366561653830373532373839646132393662623631333665
|
|
||||||
65323033313731333133346361316431623738383734316133373138363064393832
|
|
||||||
Executable → Regular
+30
-33
@@ -1,33 +1,30 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
---
|
||||||
35316331613562646337303937613236363263393739626530333265356566623430316533383031
|
branch: master
|
||||||
3166386236376266336664313737633436303634383034630a653739323136393865343961306161
|
hostname: mewitoot.de
|
||||||
33656165646637343532643131653536363561313535653665666234656332633266333835353239
|
set_hosts: True
|
||||||
6336303531636138390a656339653330316566663231383065643866333861653333663463363764
|
|
||||||
38363833383133303966633764396436393138633435356164363365646439373835393236313961
|
ansible_cron_minute: "40"
|
||||||
66666366643863313962636135646266333938663532353061663865313131646132336637386431
|
ssh_port: 22
|
||||||
66396236646633386465386333343564346163363437313433626361366565653533653536363865
|
ssh_users: "user1 user2"
|
||||||
31643837663339336562303464333834626336323231663238613437306262663463633866343131
|
|
||||||
32393534616265393439383035393132326430313432393832663335626536323261313336653732
|
# platform-specific
|
||||||
61303537353933363534343234373962623463613836393336333261643234393838653666333233
|
linode_instance: true
|
||||||
37326133356231316634643263316366353065343433653030333339663832646537386631663531
|
microcode_amd_install: false
|
||||||
63306162616632343833356361666433323031376463316138336438643133313932346162633134
|
microcode_intel_install: false
|
||||||
62306337623064323533326562316232633334353761383336336662393664653839653335646466
|
proxmox_instance: false
|
||||||
66633431316436626137643562336662653763396232333434303734613931623634356438313331
|
raspberry_pi: false
|
||||||
36663236646162633030663766376639666538306132353863613563336530323765643665656466
|
|
||||||
36643332626166353432313661313330366161626334353831323034323766363266653762346362
|
# server
|
||||||
30656337383638623038313838323462316132383430383337636638366239323731666235623663
|
unattended_upgrades: true
|
||||||
36303963613365633233653031353436363636333965356462353130303066303861316436363330
|
web_server: true
|
||||||
36383735333439663433356366643430306333656433643539346632663064323636373731633230
|
netdata: true
|
||||||
31303663613138396531623463306131636430366630626331313665323761396561386636353562
|
bind: true
|
||||||
34663430333661333765613235383231366264353564333031333966356338653135616637616363
|
unbound: true
|
||||||
34323930613136643433363861636630313233613763653765643238343839353930336235613032
|
|
||||||
64356361646639343763643166626632353663363561656638643731396563363639353466386533
|
# VPN
|
||||||
35343262666564383964353631363038363235643531663830313263633661303161323166643237
|
wireguard: true
|
||||||
66396166336362323137353839396165333936376265316461663630636532633632326336393565
|
wg_local_ip: 192.168.3.11/24
|
||||||
38613330383064626233306166383435346531643638323563336139653537643033376434666164
|
|
||||||
30643933366631373461393533343364343266366161363961316162386236356231656662653366
|
# Application
|
||||||
62333765326262653463323131666161663334633337663431383836363962656664643033636564
|
migration: true
|
||||||
61643230353764346236393664336232623636643030356339643466356566336638626536643161
|
mastodon_host: "{{ hostname }}"
|
||||||
34643465376633616538366332386135623764313433326262363564663332346162306136656235
|
|
||||||
65353264623239663735346166653633356333373464616433333364326530373263343231346530
|
|
||||||
37363761623535623534
|
|
||||||
Whitespace-only changes.
Executable → Regular
File mode changed.
Whitespace-only changes.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
run_portainer: false
|
|
||||||
run_portainer_agent: true
|
|
||||||
Whitespace-only changes.
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
is_proxmox: true
|
|
||||||
Executable → Regular
File mode changed.
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
is_proxmox: true
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
is_proxmox: true
|
|
||||||
Whitespace-only changes.
@@ -1 +0,0 @@
|
|||||||
samba-ad-dc1.universe.local.yml
|
|
||||||
Whitespace-only changes.
@@ -1 +0,0 @@
|
|||||||
samba-ad-dc2.universe.local.yml
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
# purpose selection
|
|
||||||
webserver: true
|
|
||||||
apache: false
|
|
||||||
nginx: true
|
|
||||||
|
|
||||||
# shell selection
|
|
||||||
zsh: true
|
|
||||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -1 +0,0 @@
|
|||||||
---
|
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Whitespace-only changes.
@@ -6,72 +6,40 @@ glustertest
|
|||||||
|
|
||||||
[server]
|
[server]
|
||||||
AdGuard.universe.local
|
AdGuard.universe.local
|
||||||
agh01.universe.local
|
pve.universe.local
|
||||||
dhcp-stork.universe.local
|
netbox.universe.local
|
||||||
elk-stack.universe.local
|
samba-ad-dc.universe.local
|
||||||
freepbx.universe.local
|
librenms.universe.local
|
||||||
grafana.universe.local
|
grafana.universe.local
|
||||||
graylog.universe.local
|
|
||||||
haproxy01.universe.local
|
haproxy01.universe.local
|
||||||
haproxy02.universe.local
|
haproxy02.universe.local
|
||||||
learningdjango.universe.local
|
elk-stack.universe.local
|
||||||
librenms.universe.local
|
|
||||||
mewitoot.de
|
|
||||||
netbox.universe.local
|
|
||||||
netbird-mgmt.universe.local
|
|
||||||
ntfy.universe.local
|
|
||||||
owntrack.universe.local
|
|
||||||
paperless.universe.local
|
|
||||||
pi-alert.universe.local
|
|
||||||
pi-alert-lan.universe.local
|
|
||||||
pi-hole.universe.local
|
|
||||||
pixelfed.universe.local
|
|
||||||
samba.universe.local
|
|
||||||
samba-ad-dc1.universe.local
|
|
||||||
samba-ad-dc2.universe.local
|
|
||||||
samba-ad-dc1
|
|
||||||
samba-ad-dc2
|
|
||||||
shinobi.universe.local
|
|
||||||
step-ca.universe.local
|
|
||||||
truenas.universe.local
|
|
||||||
wazuh.universe.local
|
|
||||||
zoneminder.universe.local
|
|
||||||
|
|
||||||
[server:children]
|
[server:children]
|
||||||
auth
|
auth
|
||||||
backup
|
backup
|
||||||
bastionhost
|
|
||||||
cluster
|
cluster
|
||||||
database
|
database
|
||||||
dhcpserver
|
dhcpserver
|
||||||
docker
|
docker
|
||||||
domaincontroller
|
|
||||||
drone
|
|
||||||
fileserver
|
fileserver
|
||||||
icinga
|
icinga
|
||||||
jitsimeet
|
jitsimeet
|
||||||
mailserver
|
mailserver
|
||||||
mastodon
|
mastodon
|
||||||
nameserver
|
nameserver
|
||||||
ollama
|
printspooler
|
||||||
podman_servers
|
|
||||||
printspooler
|
|
||||||
proxmoxserver
|
|
||||||
proxyserver
|
proxyserver
|
||||||
reverseproxy
|
webserver
|
||||||
webservers
|
|
||||||
|
|
||||||
[auth]
|
[auth]
|
||||||
freeradius.universe.local
|
freeradius.universe.local
|
||||||
|
|
||||||
[bastionhost]
|
|
||||||
bastion.universe.local
|
|
||||||
newbastion.universe.local
|
|
||||||
|
|
||||||
[backup]
|
[backup]
|
||||||
backup.universe.local
|
backup.universe.local
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
|
coruscant.universe.local
|
||||||
mariadb01.universe.local
|
mariadb01.universe.local
|
||||||
mariadb02.universe.local
|
mariadb02.universe.local
|
||||||
mariadb03.universe.local
|
mariadb03.universe.local
|
||||||
@@ -82,22 +50,16 @@ endorvm.universe.local
|
|||||||
tuxedo-book-xp1511.universe.local
|
tuxedo-book-xp1511.universe.local
|
||||||
|
|
||||||
[dhcpserver]
|
[dhcpserver]
|
||||||
|
coruscant.universe.local
|
||||||
dhcp-kea.universe.local
|
dhcp-kea.universe.local
|
||||||
|
|
||||||
[docker]
|
[docker]
|
||||||
docker01.universe.local
|
docker01.universe.local
|
||||||
docker02
|
docker02.universe.local
|
||||||
|
|
||||||
[domaincontroller]
|
|
||||||
samba-ad-dc.universe.local
|
|
||||||
samba-ad-dc1.universe.local
|
|
||||||
samba-ad-dc2.universe.local
|
|
||||||
|
|
||||||
[drone]
|
|
||||||
drone.universe.local
|
|
||||||
|
|
||||||
[fileserver]
|
[fileserver]
|
||||||
nfs-server.universe.local
|
coruscant.universe.local
|
||||||
|
samba-ad-dc.universe.local
|
||||||
|
|
||||||
[glustertest]
|
[glustertest]
|
||||||
glustertest01.universe.local
|
glustertest01.universe.local
|
||||||
@@ -117,68 +79,46 @@ icinga_satellite
|
|||||||
mewimeet.de jitsi_fqdn=mewimeet.de
|
mewimeet.de jitsi_fqdn=mewimeet.de
|
||||||
|
|
||||||
[mailserver]
|
[mailserver]
|
||||||
|
coruscant.universe.local
|
||||||
mail.mewissen.site
|
mail.mewissen.site
|
||||||
mailcow.universe.local
|
mailcow.universe.local
|
||||||
mail.universe.local
|
mail.universe.local
|
||||||
|
|
||||||
[mastodon]
|
[mastodon]
|
||||||
|
mewitoot.de
|
||||||
ubuntu-test.universe.local
|
ubuntu-test.universe.local
|
||||||
|
|
||||||
[mobile]
|
[mobile]
|
||||||
tuxedo-book-xp1511.universe.local
|
tuxedo-book-xp1511.universe.local
|
||||||
lifebook-u939.universe.local
|
|
||||||
LIFEBOOK-U939
|
|
||||||
|
|
||||||
[nameserver]
|
[nameserver]
|
||||||
dnspri.universe.local
|
coruscant.universe.local
|
||||||
dnssec1.universe.local
|
|
||||||
dnssec2.universe.local
|
|
||||||
mewimeet.de
|
mewimeet.de
|
||||||
mewitoot.de
|
mewitoot.de
|
||||||
ns1.universe.local
|
ns1.universe.local
|
||||||
unbound01.universe.local
|
unbound01.universe.local
|
||||||
unbound02.universe.local
|
unbound02.universe.local
|
||||||
|
|
||||||
[ollama]
|
|
||||||
ollama.universe.local
|
|
||||||
|
|
||||||
[omada_controller]
|
|
||||||
omada.universe.local
|
|
||||||
omada-stdby.universe.local
|
|
||||||
|
|
||||||
[photo_editing]
|
[photo_editing]
|
||||||
endor.universe.local
|
endor.universe.local
|
||||||
endorvm.universe.local
|
endorvm.universe.local
|
||||||
tuxedo-book-xp1511.universe.local
|
tuxedo-book-xp1511.universe.local
|
||||||
|
|
||||||
[podman_servers]
|
|
||||||
podman01.universe.local
|
|
||||||
podman02.universe.local
|
|
||||||
|
|
||||||
[printspooler]
|
[printspooler]
|
||||||
|
coruscant.universe.local
|
||||||
[proxmoxserver]
|
|
||||||
pve.universe.local
|
|
||||||
pve2.universe.local
|
|
||||||
pve3.universe.local
|
|
||||||
pve-ha.universe.local
|
|
||||||
pve4.universe.local
|
|
||||||
|
|
||||||
[proxyserver]
|
[proxyserver]
|
||||||
tinyproxy.universe.local
|
coruscant.universe.local
|
||||||
|
|
||||||
[reverseproxy]
|
|
||||||
caddy.universe.local
|
|
||||||
|
|
||||||
[video_editing]
|
[video_editing]
|
||||||
endor.universe.local
|
endor.universe.local
|
||||||
endorvm.universe.local
|
endorvm.universe.local
|
||||||
tuxedo-book-xp1511.universe.local
|
tuxedo-book-xp1511.universe.local
|
||||||
|
|
||||||
[webservers]
|
[webserver]
|
||||||
nextcloud.universe.local
|
coruscant.universe.local
|
||||||
searx.universe.local
|
nextcloud.universe.local
|
||||||
webserver.universe.local
|
webserver.universe.local
|
||||||
|
|
||||||
[workstation:children]
|
[workstation:children]
|
||||||
development
|
development
|
||||||
|
|||||||
@@ -1,84 +1,39 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
handlers:
|
handlers:
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
- import_tasks: global_handlers/global_handlers.yml
|
||||||
connection: local
|
connection: local
|
||||||
vars_files:
|
vars_files:
|
||||||
- "{{ lookup('first_found', ['os_vars/' + (ansible_facts['distribution'] | lower) + '.yml'], errors='ignore') }}"
|
- "os_vars/{{ ansible_distribution | lower }}.yml"
|
||||||
become: true
|
become: true
|
||||||
vars:
|
|
||||||
ansible_reboot_cooldown_minutes: 15 # Cooldown in Minuten
|
|
||||||
ansible_pull_marker_file: /var/tmp/ansible_pull.last_run
|
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: pre-run | get status of marker file
|
- name: pre-run | update apt repository (debian, ubuntu, etc.)
|
||||||
ansible.builtin.stat:
|
apt: update_cache=yes
|
||||||
path: "{{ ansible_pull_marker_file }}"
|
changed_when: false
|
||||||
register: marker_file_stat
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||||
tags: always
|
- name: pre-run | upgrade system (debian, ubuntu, etc.)
|
||||||
|
apt: upgrade=dist
|
||||||
- name: pre-run | check if last run was within cooldown period
|
changed_when: false
|
||||||
ansible.builtin.meta: end_play
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||||
when:
|
|
||||||
- marker_file_stat.stat.exists
|
|
||||||
- (ansible_facts['date_time']['epoch'] | int) - (marker_file_stat.stat.mtime | int) < (ansible_reboot_cooldown_minutes | int * 60)
|
|
||||||
tags: always
|
|
||||||
|
|
||||||
- name: pre-run | set marker file path as a cached fact
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
ansible_pull_marker_file: "{{ ansible_pull_marker_file }}"
|
|
||||||
cacheable: true
|
|
||||||
tags: always
|
|
||||||
|
|
||||||
- name: pre-run | update apt repository (debian, ubuntu, etc.) # noqa no-changed-when
|
|
||||||
ansible.builtin.apt:
|
|
||||||
update_cache: yes
|
|
||||||
autoclean: yes
|
|
||||||
#changed_when: false
|
|
||||||
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
|
|
||||||
ignore_errors: True
|
|
||||||
- name: pre-run | update pacman repository (arch)
|
- name: pre-run | update pacman repository (arch)
|
||||||
community.general.pacman: update_cache=yes
|
pacman: update_cache=yes
|
||||||
#changed_when: false
|
changed_when: false
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_distribution == 'Archlinux'
|
||||||
ignore_errors: True
|
|
||||||
- name: pre-run |update portage repository (gentoo)
|
- name: pre-run |update portage repository (gentoo)
|
||||||
portage:
|
portage:
|
||||||
sync: yes
|
sync: yes
|
||||||
when: ansible_facts['distribution'] == 'Gentoo'
|
when: ansible_distribution == 'Gentoo'
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
|
||||||
|
|
||||||
- hosts: all:!database
|
|
||||||
pre_tasks:
|
|
||||||
- name: pre-run | upgrade system (debian, ubuntu, etc.)
|
|
||||||
ansible.builtin.apt: upgrade=dist
|
|
||||||
#changed_when: false
|
|
||||||
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
|
|
||||||
ignore_errors: True
|
|
||||||
- name: pre-run | remove old packages (debian, ubuntu, etc.)
|
|
||||||
ansible.builtin.apt:
|
|
||||||
autoremove: true
|
|
||||||
purge: true
|
|
||||||
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
|
|
||||||
ignore_errors: True
|
|
||||||
- name: pre-run | upgrade system (arch)
|
|
||||||
community.general.pacman: upgrade=true
|
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
# run roles
|
# run roles
|
||||||
- hosts: all
|
- hosts: all
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
tags: base
|
tags: base
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
|
||||||
# - hosts: workstation
|
# - hosts: workstation
|
||||||
# handlers:
|
|
||||||
# - import_tasks: global_handlers/global_handlers.yml
|
|
||||||
# tags: workstation
|
# tags: workstation
|
||||||
# become: true
|
# become: true
|
||||||
# roles:
|
# roles:
|
||||||
@@ -89,52 +44,28 @@
|
|||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- server
|
- server
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
|
|
||||||
- hosts: bastionhost
|
|
||||||
tags: server,bastionhost
|
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
become: true
|
|
||||||
roles:
|
|
||||||
- bastionhost
|
|
||||||
post_tasks:
|
|
||||||
- name: Update AIDE database if changes were made
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: bastionhost
|
|
||||||
tasks_from: system_setup/aide_update.yml
|
|
||||||
when: (aide_db_needs_update is defined and aide_db_needs_update) and (aide_db is defined and aide_db.stat.exists)
|
|
||||||
|
|
||||||
- hosts: nameserver
|
- hosts: nameserver
|
||||||
tags: server,nameserver
|
tags: server,nameserver
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- nameserver
|
- nameserver
|
||||||
|
|
||||||
- hosts: webservers
|
- hosts: webserver
|
||||||
tags: server,webservers
|
tags: server,webserver
|
||||||
become: true
|
become: true
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
roles:
|
||||||
- webservers
|
- webserver
|
||||||
|
|
||||||
- hosts: mailserver
|
- hosts: mailserver
|
||||||
tags: server,mailserver
|
tags: server,mailserver
|
||||||
become: true
|
become: true
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
roles:
|
||||||
- mailserver
|
- mailserver
|
||||||
|
|
||||||
- hosts: database
|
- hosts: database
|
||||||
tags: server,database
|
tags: server,database
|
||||||
become: true
|
become: true
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
roles:
|
||||||
- database
|
- database
|
||||||
|
|
||||||
@@ -146,28 +77,10 @@
|
|||||||
|
|
||||||
- hosts: docker
|
- hosts: docker
|
||||||
tags: server,docker
|
tags: server,docker
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
- hosts: podman_servers
|
|
||||||
tags: server,podman
|
|
||||||
become: true
|
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
|
||||||
- podman
|
|
||||||
|
|
||||||
- hosts: drone
|
|
||||||
tags: server,docker,drone
|
|
||||||
become: true
|
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
|
||||||
- drone
|
|
||||||
|
|
||||||
# - hosts: fileserver
|
# - hosts: fileserver
|
||||||
# tags: server,fileserver
|
# tags: server,fileserver
|
||||||
# become: true
|
# become: true
|
||||||
@@ -176,8 +89,6 @@
|
|||||||
|
|
||||||
- hosts: mastodon
|
- hosts: mastodon
|
||||||
tags: server,mastodon
|
tags: server,mastodon
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- mastodon
|
- mastodon
|
||||||
@@ -189,45 +100,17 @@
|
|||||||
# - printspooler
|
# - printspooler
|
||||||
|
|
||||||
- hosts: jitsimeet
|
- hosts: jitsimeet
|
||||||
tags: server,jitsimeet,webservers
|
tags: server,jitsimeet,webserver
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- jitsimeet
|
- jitsimeet
|
||||||
|
|
||||||
- hosts: omada_controller
|
|
||||||
tags: server,omada_controller
|
|
||||||
become: true
|
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
|
||||||
- omada-controller
|
|
||||||
|
|
||||||
- hosts: ollama
|
|
||||||
tags: server,ollama
|
|
||||||
become: true
|
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
|
||||||
- ollama
|
|
||||||
|
|
||||||
- hosts: backup
|
- hosts: backup
|
||||||
tags: server,backup
|
tags: server,backup
|
||||||
become: true
|
become: true
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
roles:
|
||||||
- backup
|
- backup
|
||||||
|
|
||||||
- hosts: reverseproxy
|
|
||||||
tags: server,reverseproxy
|
|
||||||
become: true
|
|
||||||
handlers:
|
|
||||||
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
|
|
||||||
roles:
|
|
||||||
- reverseproxy
|
|
||||||
|
|
||||||
# - hosts: proxyserver
|
# - hosts: proxyserver
|
||||||
# tags: server,proxyserver
|
# tags: server,proxyserver
|
||||||
# become: true
|
# become: true
|
||||||
@@ -237,26 +120,21 @@
|
|||||||
# end of roles; cleanup and reporting
|
# end of roles; cleanup and reporting
|
||||||
- hosts: all
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
post_tasks:
|
tasks:
|
||||||
- name: cleanup package cache (debian and ubuntu)
|
- name: cleanup package cache (debian and ubuntu)
|
||||||
tags: always
|
tags: always
|
||||||
ansible.builtin.apt:
|
apt:
|
||||||
autoclean: yes
|
autoclean: yes
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: ansible_facts['distribution'] in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
|
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||||
|
|
||||||
- name: autoremove orphan packages (debian and ubuntu)
|
- name: autoremove orphan packages (debian and ubuntu)
|
||||||
tags: always
|
tags: always
|
||||||
ansible.builtin.apt:
|
apt:
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
purge: yes
|
purge: yes
|
||||||
when: ansible_facts['distribution'] in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
|
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||||
|
|
||||||
- name: post-run | update marker file timestamp on successful run
|
|
||||||
file:
|
|
||||||
path: "{{ ansible_pull_marker_file | default('/var/tmp/ansible_pull.last_run') }}"
|
|
||||||
state: touch
|
|
||||||
tags: always
|
|
||||||
# - name: send completion alert
|
# - name: send completion alert
|
||||||
# include_tasks: playbooks/send_completion_alert.yml
|
# include_tasks: playbooks/send_completion_alert.yml
|
||||||
# tags: always
|
# tags: always
|
||||||
|
|||||||
Executable → Regular
-2
@@ -1,2 +0,0 @@
|
|||||||
aur_helper: "paru"
|
|
||||||
aur_build_user: "aur_builder"
|
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
snmp_user: Debian-snmp
|
snmp-user: Debian-snmp
|
||||||
mta_package: ssmtp
|
mta_package: ssmtp
|
||||||
|
|
||||||
redis_pkgs:
|
redis_pkgs:
|
||||||
@@ -12,4 +12,4 @@ postgres_pkgs:
|
|||||||
- package: "postgresql"
|
- package: "postgresql"
|
||||||
- package: "postgresql-contrib"
|
- package: "postgresql-contrib"
|
||||||
- package: "python3-psycopg2"
|
- package: "python3-psycopg2"
|
||||||
- package: "sudo"
|
- package: "sudo"
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
@@ -1 +0,0 @@
|
|||||||
ubuntu.yml
|
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
snmp_user: Debian-snmp
|
snmp-user: Debian-snmp
|
||||||
mta_package: ssmtp
|
mta_package: ssmtp
|
||||||
|
|
||||||
redis_pkgs:
|
redis_pkgs:
|
||||||
@@ -12,4 +12,4 @@ postgres_pkgs:
|
|||||||
- package: "postgresql"
|
- package: "postgresql"
|
||||||
- package: "postgresql-contrib"
|
- package: "postgresql-contrib"
|
||||||
- package: "python3-psycopg2"
|
- package: "python3-psycopg2"
|
||||||
- package: "sudo"
|
- package: "sudo"
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
---
|
|
||||||
# Standardwerte für roles/apt_repos/tasks/add.yml
|
|
||||||
#
|
|
||||||
# Erwartete Variable: apt_repo (dict)
|
|
||||||
# name (Pflicht) Repo-Name (deb822: X-Repolib-Name und Dateiname)
|
|
||||||
# uris (Pflicht) Basis-URL des Repositories
|
|
||||||
# suites (Pflicht) Suite/Codename oder Pfad (Pfad muss auf "/" enden)
|
|
||||||
# components (optional) Liste der Komponenten (bei Pfad-Suite weglassen)
|
|
||||||
# types (optional) [deb] (Default) oder [deb, deb-src]
|
|
||||||
# signed_by (optional) Pfad zum Keyring
|
|
||||||
# architectures (optional) Liste der Architekturen
|
|
||||||
# mode (optional) Dateimodus, Default "0644"
|
|
||||||
# legacy_file (optional) Dateiname der alten .list, Default: name
|
|
||||||
# notify (optional) Handler, Default: apt_update
|
|
||||||
|
|
||||||
apt_repo_types: "{{ apt_repo.types | default(['deb']) }}"
|
|
||||||
apt_repo_legacy_file: "{{ apt_repo.legacy_file | default(apt_repo.name) }}"
|
|
||||||
apt_repo_notify: "{{ apt_repo.notify | default('apt_update') }}"
|
|
||||||
apt_repo_arch_option: "{{ ('arch=' ~ (apt_repo.architectures | join(','))) if apt_repo.architectures is defined else '' }}"
|
|
||||||
apt_repo_signed_option: "{{ ('signed-by=' ~ apt_repo.signed_by) if apt_repo.signed_by is defined else '' }}"
|
|
||||||
apt_repo_legacy_options: "{{ (apt_repo_arch_option ~ ' ' ~ apt_repo_signed_option) | trim }}"
|
|
||||||
apt_repo_legacy_suffix: >-
|
|
||||||
{{ (' [' ~ apt_repo_legacy_options ~ ']') if apt_repo_legacy_options else '' }}
|
|
||||||
{{ apt_repo.uris }} {{ apt_repo.suites }}{{ (' ' ~ (apt_repo.components | join(' '))) if apt_repo.components is defined else '' }}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
---
|
|
||||||
# Fügt ein APT-Repository hinzu.
|
|
||||||
#
|
|
||||||
# Auf ansible-core >= 2.15 wird ansible.builtin.deb822_repository verwendet
|
|
||||||
# (Modul ab 2.15 verfügbar), auf älteren Versionen fällt der Task auf das
|
|
||||||
# (dort noch nicht abgekündigte) ansible.builtin.apt_repository zurück.
|
|
||||||
#
|
|
||||||
# Parameter: siehe roles/apt_repos/defaults/main.yml (Variable apt_repo).
|
|
||||||
|
|
||||||
- name: apt_repos | validate parameters
|
|
||||||
ansible.builtin.assert:
|
|
||||||
that:
|
|
||||||
- apt_repo is defined
|
|
||||||
- apt_repo.name is defined
|
|
||||||
- apt_repo.uris is defined
|
|
||||||
- apt_repo.suites is defined
|
|
||||||
fail_msg: "apt_repo benötigt mindestens die Schlüssel name, uris und suites."
|
|
||||||
quiet: true
|
|
||||||
|
|
||||||
- name: "apt_repos | {{ apt_repo.name }} | add repository (deb822, ansible-core >= 2.15)"
|
|
||||||
ansible.builtin.deb822_repository:
|
|
||||||
name: "{{ apt_repo.name }}"
|
|
||||||
types: "{{ apt_repo_types }}"
|
|
||||||
uris: "{{ apt_repo.uris }}"
|
|
||||||
suites: "{{ apt_repo.suites }}"
|
|
||||||
components: "{{ apt_repo.components | default(omit) }}"
|
|
||||||
signed_by: "{{ apt_repo.signed_by | default(omit) }}"
|
|
||||||
architectures: "{{ apt_repo.architectures | default(omit) }}"
|
|
||||||
mode: "{{ apt_repo.mode | default('0644') }}"
|
|
||||||
when: ansible_version.full is version('2.15', '>=')
|
|
||||||
notify: "{{ apt_repo_notify }}"
|
|
||||||
|
|
||||||
- name: "apt_repos | {{ apt_repo.name }} | remove legacy .list file"
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "/etc/apt/sources.list.d/{{ apt_repo_legacy_file }}.list"
|
|
||||||
state: absent
|
|
||||||
when: ansible_version.full is version('2.15', '>=')
|
|
||||||
notify: "{{ apt_repo_notify }}"
|
|
||||||
|
|
||||||
- name: "apt_repos | {{ apt_repo.name }} | add repository (apt_repository, ansible-core < 2.15)"
|
|
||||||
ansible.builtin.apt_repository:
|
|
||||||
repo: "{{ item }}{{ apt_repo_legacy_suffix }}"
|
|
||||||
state: present
|
|
||||||
filename: "{{ apt_repo_legacy_file }}"
|
|
||||||
loop: "{{ apt_repo_types }}"
|
|
||||||
when: ansible_version.full is version('2.15', '<')
|
|
||||||
notify: "{{ apt_repo_notify }}"
|
|
||||||
Executable → Regular
-1
@@ -1 +0,0 @@
|
|||||||
querylog.json
|
|
||||||
Executable → Regular
+2
@@ -1 +1,3 @@
|
|||||||
|
/etc
|
||||||
/opt/AdGuardHome
|
/opt/AdGuardHome
|
||||||
|
/var/spool/cron/crontabs
|
||||||
@@ -1 +0,0 @@
|
|||||||
querylog.json
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/opt/AdGuardHome
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
mailcow;/opt/backup/config/mailcow_includes.txt;/opt/backup/config/mailcow_excludes.txt
|
||||||
|
jitsi;/opt/backup/config/jitsi_includes.txt;/opt/backup/config/jitsi_excludes.txt
|
||||||
|
mewitoot;/opt/backup/config/mewitoot_includes.txt;/opt/backup/config/mewitoot_excludes.txt
|
||||||
|
coruscant;/opt/backup/config/coruscant_includes.txt;/opt/backup/config/coruscant_excludes.txt
|
||||||
|
ns1;/opt/backup/config/ns1_includes.txt;/opt/backup/config/ns1_excludes.txt
|
||||||
|
docker01;/opt/backup/config/docker01_includes.txt;/opt/backup/config/docker01_excludes.txt
|
||||||
|
pi-alert;/opt/backup/config/pi-alert_includes.txt;/opt/backup/config/pi-alert_excludes.txt
|
||||||
|
mariadb01;/opt/backup/config/mariadb01_includes.txt;/opt/backup/config/mariadb01_excludes.txt
|
||||||
|
mariadb02;/opt/backup/config/mariadb02_includes.txt;/opt/backup/config/mariadb02_excludes.txt
|
||||||
|
mariadb03;/opt/backup/config/mariadb03_includes.txt;/opt/backup/config/mariadb03_excludes.txt
|
||||||
|
icinga;/opt/backup/config/icinga_includes.txt;/opt/backup/config/icinga_excludes.txt
|
||||||
|
samba-ad-dc;/opt/backup/config/samba-ad-dc_includes.txt;/opt/backup/config/samba-ad-dc_excludes.txt
|
||||||
|
webserver;/opt/backup/config/webserver_includes.txt;/opt/backup/config/webserver_excludes.txt
|
||||||
|
elk-stack;/opt/backup/config/elk-stack_includes.txt;/opt/backup/config/elk-stack_excludes.txt
|
||||||
|
netbox;/opt/backup/config/netbox_includes.txt;/opt/backup/config/netbox_excludes.txt
|
||||||
|
haproxy01;/opt/backup/config/haproxy01_includes.txt;/opt/backup/config/haproxy01_excludes.txt
|
||||||
|
haproxy02;/opt/backup/config/haproxy02_includes.txt;/opt/backup/config/haproxy02_excludes.txt
|
||||||
|
librenms;/opt/backup/config/librenms_includes.txt;/opt/backup/config/librenms_excludes.txt
|
||||||
|
pi-hole;/opt/backup/config/pi-hole_includes.txt;/opt/backup/config/pi-hole_excludes.txt
|
||||||
|
adguard;/opt/backup/config/adguard_includes.txt;/opt/backup/config/adguard_excludes.txt
|
||||||
|
grafana;/opt/backup/config/grafana_includes.txt;/opt/backup/config/grafana_excludes.txt
|
||||||
|
nextcloud;/opt/backup/config/nextcloud_includes.txt;/opt/backup/config/nextcloud_excludes.txt
|
||||||
|
dhcp-kea;/opt/backup/config/dhcp-kea_includes.txt;/opt/backup/config/dhcp-kea_excludes.txt
|
||||||
|
dhcp-stork;/opt/backup/config/dhcp-stork_includes.txt;/opt/backup/config/dhcp-stork_excludes.txt
|
||||||
|
unbound01;/opt/backup/config/unbound01_includes.txt;/opt/backup/config/unbound01_excludes.txt
|
||||||
|
unbound02;/opt/backup/config/unbound02_includes.txt;/opt/backup/config/unbound02_excludes.txt
|
||||||
|
mail;/opt/backup/config/mail_includes.txt;/opt/backup/config/mail_excludes.txt
|
||||||
|
graylog;/opt/backup/config/graylog_includes.txt;/opt/backup/config/graylog_excludes.txt
|
||||||
Whitespace-only changes.
Whitespace-only changes.
Executable → Regular
+2
@@ -6,6 +6,8 @@
|
|||||||
/root/backup/
|
/root/backup/
|
||||||
files_versions/
|
files_versions/
|
||||||
files_trashbin/
|
files_trashbin/
|
||||||
|
lost\+found
|
||||||
|
*.bak
|
||||||
.local/share/Steam/Steamapps
|
.local/share/Steam/Steamapps
|
||||||
grav.log
|
grav.log
|
||||||
|
|
||||||
Executable → Regular
+4
@@ -2,6 +2,8 @@
|
|||||||
/Daten/ossn
|
/Daten/ossn
|
||||||
/Daten/owncloud
|
/Daten/owncloud
|
||||||
/Daten/tdps
|
/Daten/tdps
|
||||||
|
/etc
|
||||||
|
/home
|
||||||
/opt/docker-compose-projects/available/Rocket.Chat
|
/opt/docker-compose-projects/available/Rocket.Chat
|
||||||
/opt/docker-compose-projects/available/docker-matrix-data-v0.9
|
/opt/docker-compose-projects/available/docker-matrix-data-v0.9
|
||||||
/opt/docker-compose-projects/available/docker-matrix-data-v1.0
|
/opt/docker-compose-projects/available/docker-matrix-data-v1.0
|
||||||
@@ -19,10 +21,12 @@
|
|||||||
/opt/docker-compose-projects/available/searx
|
/opt/docker-compose-projects/available/searx
|
||||||
/opt/librenms
|
/opt/librenms
|
||||||
/opt/tdps/tdps.config
|
/opt/tdps/tdps.config
|
||||||
|
/root
|
||||||
/usr/share/icingaweb2
|
/usr/share/icingaweb2
|
||||||
/var/git
|
/var/git
|
||||||
/var/lib/docker/volumes
|
/var/lib/docker/volumes
|
||||||
/var/lib/icinga2
|
/var/lib/icinga2
|
||||||
/var/lib/samba
|
/var/lib/samba
|
||||||
|
/var/spool/cron
|
||||||
/var/svn
|
/var/svn
|
||||||
/var/www
|
/var/www
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
+2
@@ -0,0 +1,2 @@
|
|||||||
|
/etc
|
||||||
|
/var/spool/cron/crontabs
|
||||||
Executable → Regular
File mode changed.
Executable → Regular
+2
@@ -0,0 +1,2 @@
|
|||||||
|
/etc
|
||||||
|
/var/spool/cron/crontabs
|
||||||
Executable → Regular
-1
@@ -1,2 +1 @@
|
|||||||
peertube.test
|
peertube.test
|
||||||
/opt/docker
|
|
||||||
Executable → Regular
+3
@@ -1 +1,4 @@
|
|||||||
|
/etc
|
||||||
|
/opt/docker
|
||||||
/var/lib/docker/volumes
|
/var/lib/docker/volumes
|
||||||
|
/var/spool/cron/crontabs
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
peertube.test
|
|
||||||
/opt/docker
|
|
||||||
Loaded 100 of 457 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user