Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 267b4500c7 | |||
| aed9ebce3c | |||
| 0b1b8fff9e | |||
| 741fd32d58 |
@@ -8,16 +8,17 @@
|
|||||||
|
|
||||||
- name: "Deploy configs"
|
- name: "Deploy configs"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "templates/{{ item.template }}"
|
src: "templates/{{ item.src }}"
|
||||||
|
dest: "{{ item.dest }}"
|
||||||
loop:
|
loop:
|
||||||
- template: "auto-upgrades.j2"
|
- src: "auto-upgrades.j2"
|
||||||
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
|
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
|
||||||
- template: "unattended-upgrades.j2"
|
- src: "unattended-upgrades.j2"
|
||||||
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
||||||
when: "autoupdate_enabled"
|
when: "autoupdate_enabled"
|
||||||
|
|
||||||
- name: "Restart service"
|
- name: "Restart service"
|
||||||
ansible.builtin.systemd_service:
|
ansible.builtin.systemd:
|
||||||
name: "unattended-upgrades"
|
name: "unattended-upgrades"
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
when: "autoupdate_enabled"
|
when: "autoupdate_enabled"
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ Unattended-Upgrade::Origins-Pattern {
|
|||||||
// "o=Debian,a=stable-updates";
|
// "o=Debian,a=stable-updates";
|
||||||
// "o=Debian,a=proposed-updates";
|
// "o=Debian,a=proposed-updates";
|
||||||
// "o=Debian Backports,a=${distro_codename}-backports,l=Debian Backports";
|
// "o=Debian Backports,a=${distro_codename}-backports,l=Debian Backports";
|
||||||
{{ for o in autoupdate_origins }}
|
{% for o in autoupdate_origins %}
|
||||||
"origin={{ o.origin }}{{ ',codename=' + o.codename if o.codename is defined }}{{ ',archive=' + o.archive if o.archive is defined }}";
|
"origin={{ o.origin }}{{ ',codename=' ~ o.codename if o.codename is defined }}{{ ',archive=' ~ o.archive if o.archive is defined }}";
|
||||||
{{ endfor }}
|
{% endfor %}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user