run dpkg-reconfigure if necessary

This commit is contained in:
Alexander Grothe 2017-11-13 09:27:02 +01:00
parent 0358403073
commit c985a33229
2 changed files with 5 additions and 1 deletions

View File

@ -4131,6 +4131,9 @@ if __name__ == '__main__':
#+END_SRC #+END_SRC
* Handlers * Handlers
#+BEGIN_SRC yaml :tangle handlers/main.yml :mkdirp yes #+BEGIN_SRC yaml :tangle handlers/main.yml :mkdirp yes
- name: Reconfigure unattended upgrades with dpkg
command: '/usr/sbin/dpkg-reconfigure --frontend noninteractive unattended-upgrades'
- name: Restart Samba - name: Restart Samba
systemd: systemd:
name: smbd.service name: smbd.service

View File

@ -23,7 +23,8 @@
with_items: with_items:
- 'libdvd-pkg/post-invoke_hook-install' - 'libdvd-pkg/post-invoke_hook-install'
- 'libdvd-pkg/build boolean' - 'libdvd-pkg/build boolean'
notify: ['Reconfigure unattended upgrades with dpkg']
- name: change udev rule to allow KODI to eject optical disks - name: change udev rule to allow KODI to eject optical disks
shell: sed 's/--lock-media //' /lib/udev/rules.d/60-cdrom_id.rules > /etc/udev/rules.d/60-cdrom_id.rules shell: sed 's/--lock-media //' /lib/udev/rules.d/60-cdrom_id.rules > /etc/udev/rules.d/60-cdrom_id.rules
args: args: