chore: update base.yml
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
---
|
||||
install_packages: # Add addition packages here
|
||||
- rsyslog
|
||||
- htop
|
||||
- vim-nox
|
||||
- git
|
||||
- zsh
|
||||
- curl
|
||||
- wget
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- gnupg2
|
||||
- python3
|
||||
- python3-pip
|
||||
- nfs-common
|
||||
- cron
|
||||
- jq
|
||||
- sudo
|
||||
- logwatch
|
||||
- sendemail
|
||||
- libio-socket-ssl-perl
|
||||
- libnet-ssleay-perl
|
||||
- iptables-persistent
|
||||
- rclone
|
||||
- parted
|
||||
- open-iscsi
|
@@ -1,26 +0,0 @@
|
||||
---
|
||||
- name: Replace sources.list entries for Trixie
|
||||
lineinfile:
|
||||
path: /etc/apt/sources.list
|
||||
regexp: "^deb "
|
||||
line: "deb https://deb.debian.org/debian trixie main"
|
||||
become: yes
|
||||
|
||||
- name: Update cache for Trixie
|
||||
apt:
|
||||
update_cache: yes
|
||||
force_apt_get: yes
|
||||
|
||||
- name: Dist-upgrade to Trixie
|
||||
apt:
|
||||
upgrade: dist
|
||||
force_apt_get: yes
|
||||
register: trixie_upgrade
|
||||
|
||||
- name: Reboot after Trixie upgrade
|
||||
reboot:
|
||||
reboot_timeout: 600
|
||||
test_command: whoami
|
||||
when:
|
||||
- ansible_virtualization_type != "lxc"
|
||||
- trixie_upgrade.changed
|
@@ -1,17 +0,0 @@
|
||||
---
|
||||
# Gather initial facts
|
||||
- name: Gather facts
|
||||
ansible.builtin.setup:
|
||||
|
||||
# Update system and install packages
|
||||
- import_tasks: system_update.yml
|
||||
|
||||
# Upgrade Bookworm -> Trixie if applicable
|
||||
- import_tasks: bookworm_to_trixie.yml
|
||||
when: ansible_distribution_release == "bookworm"
|
||||
|
||||
# Move to Trixie sources.list.d layout
|
||||
- import_tasks: sources_list.yml
|
||||
|
||||
# Remove EXTERNALLY-MANAGED files
|
||||
- import_tasks: python_cleanup.yml
|
@@ -1,17 +0,0 @@
|
||||
---
|
||||
- name: Find all EXTERNALLY-MANAGED files under /usr/lib/python*
|
||||
find:
|
||||
paths: /usr/lib
|
||||
patterns: "EXTERNALLY-MANAGED"
|
||||
file_type: file
|
||||
recurse: yes
|
||||
register: externally_managed_files
|
||||
become: yes
|
||||
|
||||
- name: Delete EXTERNALLY-MANAGED files
|
||||
file:
|
||||
path: "{{ item.path }}"
|
||||
state: absent
|
||||
loop: "{{ externally_managed_files.files }}"
|
||||
when: externally_managed_files.matched > 0
|
||||
become: yes
|
@@ -1,42 +0,0 @@
|
||||
---
|
||||
- name: Remove old sources.list and sources.list.d
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- /etc/apt/sources.list
|
||||
- /etc/apt/sources.list.d
|
||||
become: yes
|
||||
|
||||
- name: Ensure sources.list.d directory exists
|
||||
file:
|
||||
path: /etc/apt/sources.list.d
|
||||
state: directory
|
||||
mode: 0755
|
||||
become: yes
|
||||
|
||||
- name: Create Trixie sources.list.d
|
||||
copy:
|
||||
dest: /etc/apt/sources.list.d/debian.sources
|
||||
content: |
|
||||
Types: deb deb-src
|
||||
URIs: https://deb.debian.org/debian
|
||||
Suites: trixie trixie-updates trixie-backports
|
||||
Components: main
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
|
||||
Types: deb deb-src
|
||||
URIs: https://deb.debian.org/debian-security
|
||||
Suites: trixie-security
|
||||
Components: main
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
become: yes
|
||||
|
||||
- name: Update APT cache after sources.list.d
|
||||
apt:
|
||||
update_cache: yes
|
||||
force_apt_get: yes
|
||||
become: yes
|
@@ -1,48 +0,0 @@
|
||||
---
|
||||
- name: Ensure debian-archive-keyring is installed
|
||||
apt:
|
||||
name: debian-archive-keyring
|
||||
state: present
|
||||
update_cache: yes
|
||||
become: yes
|
||||
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
force_apt_get: yes
|
||||
when: ansible_distribution in ['Debian', 'Ubuntu']
|
||||
|
||||
- name: Upgrade all packages to latest
|
||||
apt:
|
||||
name: "*"
|
||||
state: latest
|
||||
force_apt_get: yes
|
||||
when: ansible_distribution in ['Debian', 'Ubuntu']
|
||||
register: upgrade_result
|
||||
|
||||
- name: Dist-upgrade packages
|
||||
apt:
|
||||
upgrade: dist
|
||||
force_apt_get: yes
|
||||
when: ansible_distribution in ['Debian', 'Ubuntu']
|
||||
register: dist_upgrade_result
|
||||
|
||||
- name: Install required packages
|
||||
apt:
|
||||
name: "{{ install_packages }}"
|
||||
state: present
|
||||
become: yes
|
||||
when: ansible_distribution in ['Debian', 'Ubuntu']
|
||||
register: install_result
|
||||
|
||||
- name: Reboot if required after updates
|
||||
reboot:
|
||||
reboot_timeout: 600
|
||||
test_command: whoami
|
||||
when:
|
||||
- upgrade_result.changed or dist_upgrade_result.changed or install_result.changed
|
||||
- ansible_virtualization_type != "lxc"
|
||||
become: yes
|
||||
|
||||
- name: Gather facts after reboot
|
||||
setup:
|
@@ -1,51 +1,51 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
66633332373830623139666134663234303066626136383861353962336436383634323261393138
|
||||
6333336361366430366262383061323836653539643732350a313837653930383637393962363130
|
||||
39663033393836656538333163303266663061353364316137663035383765363232653735396237
|
||||
6333653739316163330a626533613330336539626664313733656261336135396466356663313832
|
||||
39326131336261313162666162316562626434623366663530656130623737643765383362393261
|
||||
64616465323438656665323864383431373133346537663930353163643330613763623230316162
|
||||
34636236316263313362616230363161366633636330653937356333633933356539663130333139
|
||||
39383864313434646233343762633130396536386231643539323661623731626637383262353763
|
||||
65323865656330633830646563613666333932323131643434623532623366353530633538393362
|
||||
35383161643363623031386364376435363166306565386530333338363031376134363938666238
|
||||
65313266366535666563666265386565323532386538366332623334356165636364373462633539
|
||||
62326664663834643361343933323630366465636537343265626130633735356263393838396639
|
||||
30666632663034363934363966386130643161313035623862623636343864633665653166396363
|
||||
66326134323638316539333235346261656263633737333038363233613531666139373236666636
|
||||
37636638313635336531623835313630316336386464336231626338333033343437316361386432
|
||||
64363438616634323566336165303066353139396234343932623332653037303533613537306234
|
||||
38346165623861396434333130306239663462663365313365643636616434366463343565643339
|
||||
32383538663865353765313532666464613735363764336334323262633133653131383766353934
|
||||
64326261623833653731356366323138336330396131623836353536306332643531393837613432
|
||||
63366232653561613862316535306666623631633665613838343965326431353761386161616266
|
||||
38323064636632646132393666313339623237383437386635316663383734626466376466623438
|
||||
30303661633932303864326462396364653634306566353234346131663062386337336536366564
|
||||
30303231643461366334306661626336363737376534663330633634353435396431353563303633
|
||||
34346361383635353131353063663836343337643961623934663934613161636466613539303836
|
||||
31363739653739623038303334343364643762643162613866306439653933393866336265363231
|
||||
37623865316139363139396339363835393461356432626134363433353161626137366136363966
|
||||
36663832346338393766363234646336663832656438636536333930356532626638366631336330
|
||||
64313933366166653836313033343637636138653566383264636363626364353766616464386133
|
||||
66636565663331613036323461616531663834303161306531306539656131343164643261636566
|
||||
32613738653564383331323266366339663137656138653862633636333465656232613737353961
|
||||
35306135323132303933383463373262633263613663656162333233393634386364366138393766
|
||||
65313061326132376335656661616238663464303265383362313237323430316337373732313737
|
||||
65343531333163333735396132303162353630356535636138633562626234623362636136393862
|
||||
33643966616465393535383865393762303066353461323133633239383963353162616434333039
|
||||
30386630343834663632303638306664303832373937663465353233386266633963316331633037
|
||||
33353435333939356339386235336231343337623230313130333138666231336136623434333437
|
||||
64333162323237323535643336373939623939303331306433626433396533623339303365393164
|
||||
66353235653062363164343534303134336330653131333635663834386665613433363464353230
|
||||
61386564373861323461643439376165636231646632616333333763313262646232626437383736
|
||||
66316139636532616631396334613966636161653363363333633261616334383034656139393664
|
||||
33633635356562353238313136376639373962643764653338636336666138323337383933656132
|
||||
66363663306336663535333737613838653735626535386431356262623462356433336535613437
|
||||
35356530616365343639656630643063393263626335383461396262396430383839303433376365
|
||||
34653364663939336361373834386431393163656664633536616530643830633239346261396164
|
||||
30326138386565646636636539653761366466663461386366386430396331313434616130633364
|
||||
35386638336536666333633263323030643766323665303763356466393430333336316534306136
|
||||
61396263323636323835623935336135323363633837363364623664646335623163666131666532
|
||||
64346164316133393866316561346137383665363532393064663436333637393737656538313031
|
||||
65653531383830393733663465313437646335316537386530313631636634663564303165366532
|
||||
6432376363336661313535353436316231666462346364373337
|
||||
30303336393836323166313035666363396230656461306165633961363865396134633962366131
|
||||
6630663166356634643436326238646530666535653730380a383336343136373666623830663936
|
||||
64346335666637626231396663323537653139326432616630373337616261393137363932613066
|
||||
3166373635336530370a343937636638636430383064333331616632373630616561653836333264
|
||||
66323033373032353163343466363162643965396531656433383035356239376230323730626432
|
||||
36663362373834366436646566363232313965666133383138346561303263663436313433643063
|
||||
34353035613030653330343963346635663061343665383332646461373631353832386537626336
|
||||
34336364653966393231356630396464363534323533633437353062666330356164613736633966
|
||||
62623265336637303762646331336562333837303734326462356561646131373939303434333330
|
||||
39613161666364393033653339613537633161663563323963393839323037656164663137356638
|
||||
39323637336337353434383066633937393237396133326631366165666564393038633465653164
|
||||
65663138336439633965333765383939386538363233376231633433336337633630653266643764
|
||||
36316439306164336533666133663636336566333835633336613231626539653762663431643638
|
||||
62306365303362386433623931626663623564383331363339386537613431363532333266383632
|
||||
62663564373765333632623231626537303161303636333361366566306463306465316366353731
|
||||
63653437626134663364666639623538306338643634383330616331313032303336316238353165
|
||||
30366264366434313934393633326236653962313537393139373630323264326437643234383832
|
||||
32366238643736306334613134383462376165326331353435613566393739376238393833303266
|
||||
35663435663763306132386434376134363635643733666634343738663030623035333330373238
|
||||
30303264303761316437623133383333666139343738623631363432623632613439653932383863
|
||||
31663761366134623137363764663563343531636562663331346437393738363463613930323434
|
||||
31636165666435383063643330353733353362323361323839316362633531326261313337333937
|
||||
34646262316432343135393461333463633034303230663932363033623538323933376635386264
|
||||
66333163623731383434623630306332343431326666366561653333626366373538303035373064
|
||||
65653832356264633761333934613837393139643630346631653830616535613336636563643562
|
||||
61613736336261366161353933373731373733663961313766343036656262643864616234393235
|
||||
65323636613835626563633730366135336563653738363161303136323765626234393537343963
|
||||
65646661316566373436356261353965613566623939376435653236623662353936393637313436
|
||||
31336134333432303234636237623031346262326632393230373563663365323032383033363730
|
||||
33336466623739623539396666663862343530616163323838643231666166376239333561626562
|
||||
31663537343666633738343066646136386461643133653762623331613530343865643531656430
|
||||
35333138353063626136333934666262636564323462353532346661336430343030323533333436
|
||||
31656431343662666266383839666131393761333836336132316333383434626662366430636464
|
||||
36663334613236323461646265666331313339373731623933613136383565386235666134623435
|
||||
61636239393236366630656163353065393438326234313739653834623162633865323366373534
|
||||
37353965323762633032393230353361356539653565663233383165353132646638643430303663
|
||||
63323238646436346232633737656461346338353238633362326239616566336633643930653664
|
||||
30353133333362343034366237326630663930393830333363653733316263643131353736623335
|
||||
65316565303639383333356635646634646563376639346436303539366333393231396237653031
|
||||
33313862336235396532316336376565326235353962373062366565376565393532623266373633
|
||||
33333936393765653135376338323061373339366163353362656338653231646330616636383536
|
||||
30343030383936373931303131626536663337333230356438623262653536343432313330306434
|
||||
35653661343561396237626136383232656261323132613863336566353933306430663533363036
|
||||
35313162383866633233366130356231313535656538613461393233663034306534313834646265
|
||||
36353831623065653337653466353766303936303638643038623932663363346130653735323736
|
||||
33666161343338653434366664353061303439353739343030353533363533373961316664613561
|
||||
32633437353235643432616661366438346362613961303238636337616566356134383335386335
|
||||
65343733666436613332663735343736643931383433613964373664356637646537323737653834
|
||||
31373337623339373639636330386135346136323932613662393763656261363461323366363138
|
||||
3363333138343666393539393834623835383333386363346535
|
||||
|
@@ -1,18 +1,18 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
33613965373066613539323138336234303066356362393063343234653436393361663464353266
|
||||
3438373135383330313563306362353061343531336231320a333263656535336265373431663637
|
||||
39386136303432393335636662626466343639393966623234376366623466623237356464643131
|
||||
3036363264383535360a303030386464353630306161613239636534313163353563323763663763
|
||||
33363362313130633430373966653530373562613737343366373136646565623831633839656432
|
||||
33386563373864326433663130613664376536353337313465326266633265316438613631633061
|
||||
30363833613032376536346133313566666163303562626366353861626336633530343130373362
|
||||
38643730303530386139376661383662653834383734396633613134353561633538366365623835
|
||||
64356530373064396563643763653735313862643335373363386437666138623861653362343930
|
||||
64346562313533643230373831663036303835343035353036623965636565653331646331303361
|
||||
30613732313134326339633862333532366163346261313836366362313266303734316431336561
|
||||
37663463646162363031363662346431386566656331313235343235663732636236666237663265
|
||||
33336233623636613232333263656266393465333333333330373935346237613337313664346139
|
||||
66653236633030383835326433633737363931356139313331323731343332663937616235346533
|
||||
65636331386631303432373831393037333339316639623561313136643139306263303364383535
|
||||
61633330306630643139616231663134383932306437613138326366386565613030323539306462
|
||||
6439
|
||||
39636530616337336431643962373961633238653736356361386464356532643031653561663431
|
||||
6163356235656561663137646564366439323734623435340a336234336533393261623833653362
|
||||
36383231306562613132323963363361396539626266313161393862653134303866626565333239
|
||||
3861663765333731340a326336656137336533396434616665643962346366346365363266626235
|
||||
38363264613231633434666132353861346235353033386566656439373837333735333931343339
|
||||
34613232396636383566623066663732303235313961386239623835386430323365613931383238
|
||||
61373865363432336339313463313862636336633264373030333061346364306163363531313939
|
||||
61633831353738633533363539663065613034613133393265313332643030623464643035346533
|
||||
64663635363366343061613666363235316230343163393166636538316362633262636331633835
|
||||
63323335613437666462653234613936633766623430336631363338666565383166356238313239
|
||||
33663238653662353133313164653763643036386562303735393438313063333833663162363137
|
||||
37653762386161653032623962313064323637313930613238333861356538313534386266633139
|
||||
64366561326462613636373164616138396336663766393465333037393032336533333436343039
|
||||
66373266353738303362326633636363376135386562623061393761633038363638316630663461
|
||||
35343737356331336136636638366237376431393664393337643037323862333735363031303432
|
||||
65336565653838626461323631643565626436343239633238613535663137336338366564633131
|
||||
3438
|
||||
|
Reference in New Issue
Block a user