|
@@ -32,6 +32,11 @@
|
|
|
value: 'true'
|
|
|
|
|
|
|
|
|
+- name: Check for existing local copy of config
|
|
|
+ stat:
|
|
|
+ path: /etc/apt/apt.conf.d/52unattended-upgrades-local
|
|
|
+ register: unattended_local_config
|
|
|
+
|
|
|
- name: Copy default config for local changes
|
|
|
copy:
|
|
|
src: /etc/apt/apt.conf.d/50unattended-upgrades
|
|
@@ -40,6 +45,8 @@
|
|
|
group: root
|
|
|
mode: '0644'
|
|
|
remote_src: True
|
|
|
+ when:
|
|
|
+ - unattended_local_config.stat.exists == False
|
|
|
|
|
|
|
|
|
- name: Configure auto reboots for unattended upgrades
|