🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user.italian
Article #20

Re: [SEMI-OT/OT] debian + ansible + sudo + upgrade

#20
From: Alessandro Baggi
Date: Wed, 28 Oct 2026 10:30
38 lines
4190 bytes

Il 28/10/26 09:28, angelo bosio ha scritto:
> 
> 
> Il 27/10/26 12:39, Alessandro Baggi ha scritto:
>> Un saluto a tutta la lista.
>>
>> Scusate l'OT.
>>
>> Dopo l'ultimo problema derivato dalla vulnerabilità di PHP mi sono 
>> deciso di automatizzare gli aggiornamenti in massa con ansible.
> Da circa 20 anni, uso uno script per l'aggiornamento automatico di 
> debian, e lo mando in esecuzione con crontab ad una determinata ora.
> 
> crontab -l
> 43 7 * * * /bin/aggiorna
> 
> ho creato il file eseguibile in /bin/aggiorna con dentro:
> 
> echo "----  apt-get update   ----" >/home/utente/log-aggiorna
> apt-get update >> /home/utente/log-aggiorna
> 
> echo "----  apt-get -y upgrade   ----" >>/home/utente/log-aggiorna
> apt-get -y upgrade >> /home/utente/log-aggiorna
> 
> alla fine ottengo un file con nome log-aggiorna con dentro il risultato 
> dell'operazione di aggiornamento, che mi scarico quando mi fà comodo
> con ssh e me lo guardo con calma.
> my 2¢ angelo
> 

Ciao Angelo e grazie per la risposta.

mi ricorda unattended-upgrade.

Saluti,
Alessandro.
Technical Details
Message-ID: <NT94S-8pnP-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <NSNH3-8eb7-1@gated-at.bofh.it> <NT7cK-8orf-21@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Alessandro Baggi <alessandro.baggi@gmail.com>
Newsgroups: linux.debian.user.italian
Subject: Re: [SEMI-OT/OT] debian + ansible + sudo + upgrade
Date: Wed, 28 Oct 2026 11:30:02 +0100
Message-ID: <NT94S-8pnP-7@gated-at.bofh.it>
References: <NSNH3-8eb7-1@gated-at.bofh.it> <NT7cK-8orf-21@gated-at.bofh.it>
X-Original-To: debian-italian@lists.debian.org
X-Mailbox-Line: From debian-italian-request@lists.debian.org  Wed Oct 28 10:26:57 2026
Old-Return-Path: <alessandro.baggi@gmail.com>
X-Amavis-Spam-Status: No, score=-2.099 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]
 autolearn=ham autolearn_force=no
X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-wr1-x42a.google. - helo-domain: .google.)  FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
X-Gm-Message-State: AFq9FYJeQvk98ogsqVadN+eYuwih4aZlh+Jti67N3HJGcdSZSRB1yoNY
	8bg57GXtaVWYcZIlecmt0XDEenrRxVHw86yznCgQNu2q5Cm58Los+DusCQp7CA==
X-Gm-Gg: AYBFou0FiwzKCIJlJml4B+3qMrIczWu+nCeNKHMdmo7qnuvVOfr4GziqpADYEMnmMHb
	lMNSPmLcc8a/Xn8E+ipyrNSoQNAU6ahDfHoy64Ww4BKD27/u8tx3ehV0nj2YYp01Z+aQOM/FRa4
	1Cf0AOjZv/tPwCZv7lc1DQxoO794CrJ7whub0R3hx6y0lIuRxxs210z1SIPGPtKFkDzm+S09yRB
	YO+HWLRLyJusSlj8bW30JjIu9lpTWHQfCTPOXz9oFHBNVxQsuTkAqO1pox6KIQA7DdaQSgOW7cB
	PxW3D8m6MKng09QGPeyv+Kz9jfTD2AiPYz7G5kp8SDlv3C9gXAHGVdARDYnTubGVsYx0SAwKoa1
	B9KPDoX0qfvwpGp3F/tfETLvZXrv2prIVHWNxb0N0GAfazbUqKtS9q57zgAMNNX2WEYYiuHlgxR
	7tkWjN2HCrsCnqAe0TkHWfc4FXrsjzVo9vB77/XKU/jQ7+vby7PzE+eH4y3gekJxnmQyAK09MGO
	cDzBGVCYCh/4wtaCwXx9pzAuPeS5g/Gg0sehFRjDTHJbQtHHop2HN1JkXWNckc8bN+zjOGD8ji6
	fSIyHaeFZ4U//CD5Pfj+pyPR2jv4xGhy/LPT3A==
X-Received: by 2002:a05:6000:4a19:b0:48e:4c82:a286 with SMTP id ffacd0b85a97d-48e5d5c2771mr4069508f8f.10.1793183204940;
        Wed, 28 Oct 2026 03:26:44 -0700 (PDT)
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Mailing-List: <debian-italian@lists.debian.org> archive/latest/171480
List-ID: <debian-italian.lists.debian.org>
List-URL: <https://lists.debian.org/debian-italian/>
List-Archive: https://lists.debian.org/msgid-search/3805ead5-37fc-45f8-9f4e-80623dd5d925@gmail.com
Approved: robomod@news.nic.it
Lines: 38
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 28 Oct 2026 11:26:44 +0100
X-Original-Message-ID: <3805ead5-37fc-45f8-9f4e-80623dd5d925@gmail.com>
X-Original-References: <29b4745d-c090-47c2-adb5-02f6130860dc@gmail.com>
 <5bcfcdd4-1882-4ce1-81af-b1595fa480ee@gmail.com>