mg
a27830107b
munin eingegrenzt Playbooks aufgeteilt header angepasst cahe valid time entfernt cache valid time angehoben update packeges in eigenes playbook vars playbook filter angepasst playbook rolle hinzugefügt Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#51 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
34 lines
953 B
YAML
34 lines
953 B
YAML
---
|
|
- name: add distribution-specific variables
|
|
include_vars: "{{ ansible_distribution }}.yml"
|
|
|
|
- name: add Debian Wheezy workaround
|
|
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
|
|
when: (ansible_distribution == "Debian") and (ansible_distribution_release == "wheezy")
|
|
|
|
- name: install unattended-upgrades
|
|
apt:
|
|
pkg: unattended-upgrades
|
|
state: present
|
|
cache_valid_time: "{{ unattended_cache_valid_time }}"
|
|
update_cache: yes
|
|
|
|
- name: install reboot dependencies
|
|
include: reboot.yml
|
|
when: unattended_automatic_reboot|bool
|
|
|
|
- name: create APT auto-upgrades configuration
|
|
template:
|
|
src: auto-upgrades.j2
|
|
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: create unattended-upgrades configuration
|
|
template:
|
|
src: unattended-upgrades.j2
|
|
dest: /etc/apt/apt.conf.d/50unattended-upgrades
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|