Compare commits
2 commits
e117acac04
...
dcd2ebc49c
Author | SHA1 | Date | |
---|---|---|---|
dcd2ebc49c | |||
555350eab7 |
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ for node in nodes:
|
|||
print(node.run('DEBIAN_FRONTEND=noninteractive apt update').stdout.decode())
|
||||
print(node.run('DEBIAN_FRONTEND=noninteractive apt list --upgradable').stdout.decode())
|
||||
if int(node.run('DEBIAN_FRONTEND=noninteractive apt list --upgradable 2> /dev/null | grep upgradable | wc -l').stdout.decode()):
|
||||
print(node.run('DEBIAN_FRONTEND=noninteractive apt -y dist-upgrade').stdout.decode())
|
||||
print(node.run('DEBIAN_FRONTEND=noninteractive apt -qy full-upgrade').stdout.decode())
|
||||
|
||||
# REBOOT IN ORDER
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
'hostname': '192.168.179.20',
|
||||
'groups': [
|
||||
'debian-11',
|
||||
'debian-12',
|
||||
'monitored',
|
||||
'raspberry-pi',
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue