debian: enable unattended upgrades
This commit is contained in:
parent
c64a3772ef
commit
7ffb1e7699
1 changed files with 13 additions and 0 deletions
|
@ -96,6 +96,19 @@
|
|||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Install automatic upgrade package
|
||||
package:
|
||||
name: unattended-upgrades
|
||||
|
||||
- name: Configure automatic upgrades
|
||||
lineinfile:
|
||||
path: /etc/apt/apt.conf.d/20auto-upgrades
|
||||
create: yes
|
||||
line: '{{ item }}'
|
||||
loop:
|
||||
- 'APT::Periodic::Update-Package-Lists "1";'
|
||||
- 'APT::Periodic::Unattended-Upgrade "1";'
|
||||
|
||||
- name: Run SSH instance in management VRF
|
||||
when: interfaces | selectattr('vrf') | selectattr('vrf.name', '==', 'mgmt')
|
||||
block:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue