Fix unattended-upgrades.
This commit is contained in:
parent
636fdc1911
commit
53349e3ece
3 changed files with 42 additions and 3 deletions
|
@ -4,6 +4,14 @@
|
|||
hosts: all
|
||||
remote_user: ansible
|
||||
become: yes
|
||||
pre_tasks:
|
||||
- name: Preseed unattended-upgrades
|
||||
debconf:
|
||||
name: unattended-upgrades
|
||||
question: unattended-upgrades/enable_auto_updates
|
||||
value: True
|
||||
vtype: boolean
|
||||
|
||||
vars:
|
||||
domain: "{{ ansible_domain }}"
|
||||
kerberize_uris: steinbeis.schule
|
||||
|
@ -56,3 +64,9 @@
|
|||
dest: /etc/pam.d/common-session
|
||||
line: "session optional pam_mkhomedir.so umask=0022"
|
||||
insertbefore: "# end of pam-auth-update config"
|
||||
- name: Fix unattended-upgrades
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
||||
content: |
|
||||
APT::Periodic::Update-Package-Lists "1";
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue