diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-09-05 23:25:11 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-09-05 23:25:11 +0100 |
commit | 3cd6aa722e093a464a407f5ac914a6f3616b2cb9 (patch) | |
tree | 1aef11110f20a8478604acd8c0f86117d04eaa38 /playbook.yaml | |
parent | 847f7f3d959ff8932466d45c60b16119acbec051 (diff) |
Install custom unattended-upgrades config
The main way the config varies from Debian's default, is that we make sure to
reboot after each upgrade.
Diffstat (limited to 'playbook.yaml')
-rw-r--r-- | playbook.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/playbook.yaml b/playbook.yaml index dd3281b..cad691d 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -483,6 +483,15 @@ become: true notify: Restart sshd + - name: Ensure unattended upgrades config is installed + ansible.builtin.copy: + src: "{{ playbook_dir }}/files/50unattended-upgrades" + dest: "/etc/apt/apt.conf.d/50unattended-upgrades" + owner: root + group: root + mode: "0644" + become: true + handlers: - name: Restart prosody |