24 lines
648 B
YAML
24 lines
648 B
YAML
---
|
|
|
|
# configure apt auto update
|
|
- name: "apt - config - configure apt periodic"
|
|
ansible.builtin.template:
|
|
src: "templates/apt/conf.d/10periodic.j2"
|
|
dest: "/etc/apt/apt.conf.d/10periodic"
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0644"
|
|
when: 'ansible_os_family == "Debian"'
|
|
tags:
|
|
- "apt"
|
|
|
|
- name: "apt - config - configure apt unatteded updates"
|
|
ansible.builtin.template:
|
|
src: "templates/apt/conf.d/50unattended-upgrades.{{ ansible_distribution }}.j2"
|
|
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0644"
|
|
when: 'ansible_os_family == "Debian"'
|
|
tags:
|
|
- "apt"
|