common: Sync
This commit is contained in:
parent
591cfd73af
commit
1bab3d478d
5 changed files with 52 additions and 0 deletions
28
roles/common/tasks/debian-upgrade.yaml
Normal file
28
roles/common/tasks/debian-upgrade.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- name: Install source list
|
||||
template:
|
||||
src: stable-sources.list
|
||||
dest: /etc/apt/sources.list
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Remove backports
|
||||
file:
|
||||
path: /etc/apt/sources.list.d/backports.list
|
||||
state: absent
|
||||
|
||||
- name: update
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: full-upgrade
|
||||
apt:
|
||||
upgrade: full
|
||||
|
||||
- name: Reboot
|
||||
reboot:
|
||||
|
||||
- name: autoremove
|
||||
apt:
|
||||
autoremove: yes
|
Loading…
Add table
Add a link
Reference in a new issue