feat: use ansible block
This commit is contained in:
parent
7d762d095d
commit
b5c819fb27
12 changed files with 399 additions and 424 deletions
|
|
@ -1,24 +1,27 @@
|
|||
---
|
||||
|
||||
# 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"
|
||||
# apt config
|
||||
- name: "apt config"
|
||||
block:
|
||||
|
||||
# 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"'
|
||||
|
||||
- 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"'
|
||||
|
||||
- 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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue